Assignment 2
Assignment 2
NB: VB.net automatically creates folders with names that you save your work with (in my documents), in this course
you are required to submit ONLY running projects. NO PDF OR WORD documents will be accepted, submission
of these is an automatic zero. Number your work (projects) copy all the folders into one folder you shall save with
your Pin Number zip it and submit. It remains the responsibility of the student to submit running /compiling
projects. If it can compile on your machine, it should be able to compile on my machine as well.
Question 1
a) On your proposed visit to South Africa, you will need R500 a day for food, travelling and other
expenses. You need to stay 5 days and wish to take sufficient money to have some R1000 left to buy
presents. How many dollars (USD) will you need to exchange if the rate is R14.25 to 1USD.
(Design an appropriate form and program for this) [10]
b) A new sports store wants you to develop an input screen for its customer database. The required input
information is as follows:
1. Name
2. Age
3. City of Residence
4. Sex (Male or Female)
5. Activities (Running, Walking, Biking, Swimming, Skiing and/or In-Line Skating)
6. Athletic Level (Extreme, Advanced, Intermediate, or Beginner)
Set up the screen so that only the Name and Age (use text boxes) and, City (use a combo box) need to be
typed; all other inputs should be set with check boxes or option buttons where relevant. Apply your
extensive knowledge of good screen design by grouping related items using relevant containers. [10]
c) Create a database for adding, updating and deleting records of the scenario described above. When a
screen of information is complete, a user clicks a Show Profile button which displays the summarized
profile in a message box. This profile message box should resemble this:
[20]
Question 2
A teacher maintains a database containing two tables - Students and Coursework. The Students table has
six fields namely: StudentID, FirstaName, Surname, Address, Next-of-kinName and Next-of-kin
PhoneNumber.
The Coursework table has five fields: StudentID, Assignment1, Assignment2, Test1, Test2. At the
beginning of the semester the Students' table is completely filled in with a record for each student
enrolled to a course and the Grades table has no records.
Create a database for the scenario above (Enter details for 5 students in the Students' table)
Create a form that the teacher will use to connect the Students' details table. Add a button, which on
click should enable the teacher to enter Coursework marks in respective fields and calculate the final
course work which should be set to 30%. Tests and assignments contribute two thirds and one third of
the final coursework respectively. [20]