Assignments - Oct 2023
Assignments - Oct 2023
QUESTION 1
A salesperson earns a commission on the values of sales. The following table shows the scale of the
commission
Value of sales % of Commission
$1 - $999 1
$1 000 - $9 999 5
$10 000 - $99 999 10
Write a program to input a figure for the value of sales using InputBox(), calculate and display the
commission through a Message Box [20 marks]
QUESTION 2
Write a program that accepts marks for n number of students and determines the following;
QUESTION 3
A disco can hold 500 people. Allow the user to keep entering the number of people in each group as the
group comes in through the door. Display the running total and how many more people are allowed in
before it before it becomes full. When the running total reaches 500, display the message that the disco
is full or if 500 is exceeded, a message that the current group of people cannot go in. [20 marks]
Assignment Two
QUESTION 1
Using VB.Net write a program that simulates a calculator [20 marks]
QUESTION 2
ZESA holding would like a system for billing. The system should capture the client account number,
client name, address, previous reading, current reading and the suburb. You are given the following
details:
Suburb Cost/Kw
High Density $0.05
Medium Density $0.75
Low Density $1.00
QUESTION 3
Given that a text file with several lines of text was created in a text editor (for example Notepad).
a) Write a program to read this text file and output the contents. [7 marks]
b) Amend your program from (i) to output the text from the first text file to another text file.
[7 marks]
c) Amend your program from (i) to add another line of text to the text file (append).
[6 marks]
Group Assignment
Due Date 15 September 2023
This is a practical exercise and the system will be presented in class on the said date.