Problem description:
Design the logic in pseudocode for a rental management program at Warm Buggy Mobile Home Park. Each month, tenants are charged $0.20 per gallon for water, $2 a month for trash pickup, $15 per car for parking, $5 for maintenance, and the rent for their apartment itself. The program must allow the user to enter the home number, the monthly rent, the number of gallons of water used, and the number of cars owned by the tenant(s), and output the totals for water and parking, and the overall total for the month after including all fees.
Pseudo-code for the monthly rental charges
start
Initialize homeNumber to zero
Initialize monthlyRent to zero
Initialize numGallons to zero
Initialize numCars to zero
Set CHARGE_PER_GALLON=0.25
Set TRANH_PICKUP=2
Set CAR_PARKING=15
Set MAINTAINANCE=5
Set waterFee=0
Set parkingFee =0
Set totalCost=0
Prompt "Enter home number: "
Input homeNumber
Prompt "Enter montly rent: "
Input monthlyRent
Prompt "Ente rnumber of gallons of water: "
Input numGallons
Prompt "Enter number of cars: "
Input numCars
Calculate
waterFee=numGallons*CHARGE_PER_GALLON
Calculate parkingFee=numCars *numCars
Calculate
totalCost=waterFee+parkingFee+TRANH_PICKUP+MAINTAINANCE
Print "Water Charges : $", waterFee
Print "Parking Charges : $", parkingFee
Print "Total Charges : $", totalCost
end
Get Answers For Free
Most questions answered within 1 hours.