Question
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
oobleck
read pay,rent,bills
print pay, rent+bills, pay-(rent+bills)
print pay, rent+bills, pay-(rent+bills)
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?
oobleck
looks ok to me
reen
Write a pseudocode to determine the type of triangle, depending upon the value of the sides.