Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Flowchart based on this PseudoCode shown below. It must be in a looping form start Declarations string carType num cars num days num

Create a Flowchart based on this PseudoCode shown below. It must be in a looping form

start Declarations string carType num cars num days num LUXURY_RATE = 65 num ANTIQUE_RATE = 40 num SUB_RATE = 30 num DAYS_FOR_DISCOUNT=7 num DISCOUNT_RATE = 0.20 string QUIT = "ZZZ" getReady() while carType = QUIT detailsLoop() endwhile finishUp() stop

detailLoop() output "Enter days rented " input days if carType = "Luxury" then rate = LUXURY_RATE else if car Type = "Antique" then rate = ANTIQUE_RATE else if carType = "Subcompact" then rate = SUB_RATE else output "Invalid car type" endif endif endif if days >= DAYS_FOR_DISCOUNT then rate = rate * DISCOUNT_RATE endif output carType, days output "Enter car type or ", QUIT, " to quit " input carType return

getReady() output Enter car type or QUIT to quit input carType return

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

More Books

Students also viewed these Databases questions

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago