Create a VB.NET Windows Form Application

1. (5 marks) Create a VB.NET Windows Form Application that does the following:

(1) Display two textboxes and a button. The user is expected to input a student’s A-number into the first textbox and input a name into the second textbox.

(2) Display a message “XXXXXX’s student A-number is A########” below the button after the user inputs and clicks the button, where XXXXXX and A######## should be the input name and A-number respectively.

Print your Form1.vb source code. Do NOT print/submit the user interface.

 

 

2. (5 marks) Create a VB.NET Windows Form Application that does the following:

(1) Display an interface, which includes a textbox and a button, for the user to calculate the HST and total price of a textbook. The user is expected to input the price of a textbook into the textbox.

(2) After the user inputs and clicks the button,

A. Check if the user inputs a numeric value in the textbox using the IsNumeric function.

B. Display a message “Please input the numeric price” below the button if the user’s input in the textbox is not a number.

C. Display two messages below the button if otherwise. One message starts with “HST: ” followed by the value of the HST which is 15% of the user’s input in the textbox. The other message starts with “Total: ” followed by the total price which is the sum of the HST and the user’s input in the textbox.

Print your Form1.vb source code. Do NOT print/submit the user interface.

 

Submission:

1. A cover page that contains your name and student number.

2. The printouts of the source codes.

Need a custom answer at your budget?

This assignment has been answered 5 times in private sessions.

© 2024 Codify Tutor. All rights reserved