Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions

Question

How does being physically attractive influence others perceptions?

Answered: 1 week ago

Question

What is a bank reconciliation

Answered: 1 week ago