Question
The flowchart the source code (Java program) the output (three sets) In the source code, use comments to state your matric number, name, program, and
The flowchart
the source code (Java program)
the output (three sets)
In the source code, use comments to state your matric number, name, program, and lab assignment number
Sample output:
******VISITOR 1*******
Enter your nationality: M
Choose category of visitor (A- Adult, C - Children, S - senior):A
Number of tickets:2
Visitor Type A Charge 86.00
Buy other ticket (Y/N)?:
Y
Choose category of visitor (A- Adult, C - Children, S - senior):C
Number of tickets:1
Visitor Type C Charge 16.00
Buy other ticket (Y/N)?:
N
The total payment for VISITOR 1 is RM102.00
Enter another visitor (Y/N)?: Y
******VISITOR 2*******
Enter your nationality: M
Choose category of visitor (A- Adult, C - Children, S - senior):A
Number of tickets:2
Visitor Type A Charge 86.00
Buy other ticket (Y/N)?:
N
The total payment for VISITOR 2 is RM86.00
Enter another visitor (Y/N)?: Y
******VISITOR 3*******
Enter your nationality: F
From which part? (I- Kad/Working Permit/Dependent Pass, E- Asean, O - Others):I
Choose category of visitor (A- Adult, C - Children, S - senior):A
Number of tickets:2
Visitor Type A Charge 100.00
Buy other ticket (Y/N)?:
Y
From which part? (I- Kad/Working Permit/Dependent Pass, E- Asean, O - Others):E
Choose category of visitor (A- Adult, C - Children, S - senior):A
Number of tickets:
1
Visitor Type A Charge 61.00
Buy other ticket (Y/N)?:
N
The total payment for VISITOR 3 is RM161.00
Enter another visitor (Y/N)?: N
Ramli is a system developer for National Zoo. He is responsible to develop an application to calculate the entrance fee for each visitor to Zoo Negara. To calculate the entrance fee, the admin need to input the nationality, visitor category, and number of tickets. If the nationality of visitor is foreigner, the different entrance fee will be charged based on the table below. The application software shall display the total entrance fee for each of visitor identified based on the following tableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started