[solved] – Question 79370
You have been tasked to create a small application to calculate the air-fare of an individual travelling
from Nadi to Savusavu based on the following requirements:
AIR VITI PRICE-LIST
Seat Price
Adult: $79.50
Child: $59.25
Luggage
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
fare.
iv. Write the code to display the total fare in a label (formatted as a currency)
Expert Answer
OR

