I don't see a pseudocode, but will be glad to comment/critique if you supply one.
// This pseudocode should determine the rental fees for cars
// Standard cars rent for $65 per day; compacts rent for $40 per day
// and subcompacts rent for $30 per day
// Rentals for at least 7 days receive a 20% discount
// An error message is displayed if the car type is not valid
num STD_RATE = 65
num COM_RATE = 40
num SUB_RATE = 30
num DAYS_FOR_DISCOUNT = 7
num DISCOUNT_RATE = 0.20
string QUIT = "ZZZZ"
while carType != QUIT
output "Enter car type or ", QUIT, " to quit "
rate = 0
days = 0
discount = 0
minFee = 200
output "Enter days rented "
if carType = "Standard" then
rate = STD_RATE
if carType = "Compact" then
rate = COM_RATE
if carType = "Subcompact" then
rate = SUB_RATE
if rate = 0 then
if days >= DAYS_FOR_DISCOUNT then
discount = (rate * days) * DISCOUNT_RATE
totalFee = (rate * days) – discount
output “Rental fees for car is: $”, totalFee
output "Invalid car type, use Standard, Compact, or Subcompact"
output "End of program"
Can someone tell me if i did this right?
IT/210 - Assignment: Chapter 5 Programming Problems · Complete Programming ...
Programming - Design a program in pseudocode that calculates the amount of money...
Programming - Using your knowledge of pseudocode, conditional statements, and ...
Calculus - A car rental agency rents 180 cars per day at a rate of 32 dollars ...
Statistics - A car rental agency currently has 41 cars available, 28 of which ...
Stats - A car rental agency currently has 43 cars available, 27 of which have a ...
Pseudocode - Write a program in pseudocode format: 1. Robert has a van rental ...
Pseudocode Format - Need help writing this into Pseudocode Format: Robert has a ...
Information Technology - Develop an algorithm, flow chart and pseudocode that ...
Physics - Some rental cars have a GPS unit installed, which allows the rental ...