Professional Documents
Culture Documents
PROGRAMMING 512
2ND SEMESTER ASSIGNMENT
Moderators Comments:
Page 1 of 5
The purpose of an assignment is to ensure that the Learner is able to:
Page 2 of 5
QUESTIONS [100 MARKS]
QUESTIONS ONE [40 MARKS]
Suppose the sequential file ALE.TXT contains the information shown in Table 1.1. Write a program to
use the file to produce the Table 1.2 in which the baseball teams are in descending order by the
percentage of games won. Note : A batting average can be displayed in standard form with Format
Number(ave, 3, vbFalse).
Table 1.1 American League East games won and Lost in 2002.
Team Won Lost
Baltimore 67 95
Boston 93 69
New York 103 58
Tampa Bay 55 106
Toronto 78 84
Toronto 78 84 0.481
Baltimore 67 95 0.414
A) Voting Machine. PC Training and Business College students bring a computer to their annual
meeting to use in the election of a new SRC president. Write a program to handle the
election. The program should add each candidate to a list box as he or she is nominated.
After the nomination process is complete, students should be able to approach a computer
one at a time and double-click on the candidate of their choice. When a Tally Votes
command button is clicked, a second list box, showing the number of votes received by each
candidate, should appear alongside the first list box. Also, the name(s) of the candidate(s)
with the highest number of votes should be displayed in a picture box. [10]
Page 3 of 5
B) Design and write a program that inputs a sentence. Convert the first letter of the sentence to
uppercase, place a period (full stop) at the end of the sentence, and then display the new
sentence. None of the remaining letters in the sentence are to be uppercase.
[10]
C) Design and write a basic calculator system in vb.net, the calculator should be able to add,
minus, divide , subtract and multiply, and it should have numbers on it. [10]
Develop a student registration system that store student information in Microsoft access database.
Below is the outlines of the look and what the system should include and perform.
Page 4 of 5
TOTAL 100
Page 5 of 5