Answer to Question #79370 in Visual Basic for NAZHAT
from Nadi to Savusavu based on the following requirements:
AIR VITI PRICE-LIST
1 bag : $25.00
More than 1 bags: $40.00
The user should select either adult or child fare option and enter the number_of_bags they will carry
in a textbox. Upon clicking the calculate button, the total fare should be displayed in a label.
a) Draw and appropriate user interface for this application
b) Code writing:
i. Declare two constants to store adult and child fare.
ii. Declare the appropriate variables and write the lines of code that will read the
number_of _bags from the textbox and convert and store it in an integer variable.
(Hint: use the Val() function)
iii. Use the if ..else structure determine the fare option selected and calculate the total
iv. Write the code to display the total fare in a label (formatted as a currency)
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!