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

The flowchart the source code (Java program) the output (three sets) In

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 table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!