Professional Documents
Culture Documents
2. Create an IPO table and a pseudocode algorithm to solve the following problem.
Design an algorithm, that asks the user for the number of bolts, nuts, and washers in their
purchase and then calculates and prints out the total.
VARIABLES USED
Nuts
Bolts
Washers
Total
START
INPUT Total Bolts + Nuts + Washers
OUTPUT "How many Bolts were purchased today?"
INPUT 0.05*Bolts
OUTPUT "How many Nuts were purchased today?"
INPUT 0.03*Nuts
OUTPUT "How many Washers were purchased today?"
INPUT 0.01*Washers
OUTPUT Total
FINISH