Asked by Trina
Write pseudocode
Program accepts a user's monthly pay, rent, and grocery bills and displays the amount available for spending (which might be negative)
Display the pay, total bills and remaining amount.
Program accepts a user's monthly pay, rent, and grocery bills and displays the amount available for spending (which might be negative)
Display the pay, total bills and remaining amount.
Answers
Answered by
oobleck
read pay,rent,bills
print pay, rent+bills, pay-(rent+bills)
print pay, rent+bills, pay-(rent+bills)
Answered by
Trina
start
input pay
input rent
input utilities
input groceries
set discretionary = pay - rent - utilities - groceries
set total bills = rent + utilities + groceries
output total bills
output pay
output discretionary
stop
Does this look correct?
input pay
input rent
input utilities
input groceries
set discretionary = pay - rent - utilities - groceries
set total bills = rent + utilities + groceries
output total bills
output pay
output discretionary
stop
Does this look correct?
Answered by
oobleck
looks ok to me
Answered by
reen
Write a pseudocode to determine the type of triangle, depending upon the value of the sides.
There are no AI answers yet. The ability to request AI answers is coming soon!