Question: 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

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!