Math  /  Numbers & Operations

QuestionSTART change=0 quarters=0 dime=0 nickels D pennies=0 Assumptions Change matches 1-99 format. unless exiting. • Calculating in US change. ■ No letters, symbols, decimals or negatives are input. User knows what quarters, dimes, nickels, pennies are. User speaks English. OUTPUT Please Enter Amount of Change (1-99) or ZERO to EXIT."/ INPUT change While change 0 False STOP True While change>=25 -True- change-change-25 quarter-quarter+1 False While change>=10 True- change-change-10 dime-dime+1 False While change>=5 True- change-change-5 nickel nickel+1 False pennies-change OUTPUT "Quarters", quarters "Dimes:", dimes "Nickels:", nickels "Pennies:", pennies quarters=0 dimes = 0 nickels = 0 pennies 0 OUTPUT "Please Enter Amount of Change (1-99) or ZERO to EXIT." INPUT change

Studdy Solution
Reset variables and prompt for new input or exit:
quarters=0,dimes=0,nickels=0,pennies=0\text{quarters} = 0, \quad \text{dimes} = 0, \quad \text{nickels} = 0, \quad \text{pennies} = 0 OUTPUT: "Please Enter Amount of Change (1-99) or ZERO to EXIT."\text{OUTPUT: "Please Enter Amount of Change (1-99) or ZERO to EXIT."} INPUT: change\text{INPUT: change}

View Full Solution - Free
Was this helpful?

Studdy solves anything!

banner

Start learning now

Download Studdy AI Tutor now. Learn with ease and get all help you need to be successful at school.

ParentsInfluencer programContactPolicyTerms
TwitterInstagramFacebookTikTokDiscord