VBQuestions
VBQuestions
Design an application for logging into a system which accepts a user name and password of your
choice and outputs a message whether the login is correct or incorrect. [25 marks]
2.Design an interface and code for a program that accepts marks and displays grades as follows
MARKS GRADE
10-30 E
31-50 D
51-70 C
71-90 B
91-100 A
You are advised to use either the IF….Then……ELSE or the Case Select constructs.[15]
3. Design an interface and code for program that calculates and displays Gross Pay, Taxes and
Net Pay in labels using the information below:
Hours worked=55
Rate = 8.5
Tax Rate=0.56
4 Design an interface with the following properties. [9]
5.A company pays its salespeople bonus according to the sales they would have done as follows:
Sales Bonus
>500 0.3
<500 0.08
(i) Design an appropriate interface for the program. [7]
(ii) Design a program which calculates the bonus for the situation given above. [8]
6.Draw an interface with the following details; [10]
(a) A company pays its salespeople bonus according to the sales they would have done as follows:
Sales Bonus
>1000 0.4
<1000 0.09
(j) Design an appropriate interface for the program. [7]
(ii) Design a program which calculates the bonus for the situation given above. [8]
MARKS GRADE
10-30 E
31-50 D
51-70 C
71-90 B
91-100 A
.
(b) Write the code for the program using appropriate variables [14]
9.Write a program which accepts a Password and outputs a message which states whether
the password is wrong or right