Page 1 of 1

Instructions: Provide the flowchart, complete code and sample output for all of the questions. 1. (Modified from 2nd Sem

Posted: Sun Jul 03, 2022 9:58 am
by answerhappygod
Instructions:
Provide the flowchart, completecode and sample output for all of the questions.
1. (Modified from 2nd Semester 2015/2016) Assumethat you are asked to develop a program for the XYZ Water ThemePark that will calculate the total price of ticket that need to bepaid by the visitors. The price of the ticket depends on the age ofthe visitors as follows:
Age
12 and below Between 13 and 60 Above 60
Price (RM)
30.00 60.00 20.00
However, if the visitor holds a membership card, the visitor iseligible for a discount of 20%. The program will prompt the user toprovide his/her age and then asks whether the visitor is a memberof not. Then, the price of the ticket is calculated. The user isgiven the option whether to continue with the next transaction orquit the program.
The format of the input and output is as follows:
Note: The underline texts are the input to the program
Complete the program’s main() method based on thedescription.
do {
} while (_________________________); } //end main
} //end class