Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This needs to be done in Thonny. That Makes Cents 80/100 Design a program that will determine the number of coins in the given total

This needs to be done in Thonny.

image text in transcribedimage text in transcribed

That Makes Cents 80/100 Design a program that will determine the number of coins in the given total amount of change entered as cents. Output Display the results: Input Prompt for user input "Enter the total amount of change in cents):" Store the amount entered Processing Calculate the number of quarters and pennies in the user's amount of change (entered as cents) That Makes Cents Amount of change entered: nnn nn Quarters nn Pennies Note: nnn is the amount entered nn is the number of coins To figure out how many quarters there are in the number of cents entered 9 = cents / 25 To determine the pennies, use the remainder operator (%) see pg 54 - 60 p = cents % 25 +10 points Expand the program to determine the number of quarters, dimes, nickels and pennies. Hint: do the calculations in the order of the denomination Highest to lowest That Makes Cents Amount of change entered: nnn nn Quarters nn Dimes nn Nickels nn Pennies +10 points Expand the program to determine the number of dollars, quarters, dimes, nickels and pennies That Makes Cents Enter the number of cents: nnn nn Dollars nn Quarters nn Dimes nn Nickels nn Pennies Things to consider: 1. The total amount of change should be declared as a whole number i.e. 127 cents 2. Declare a variable for each type of coin 3. The variable for the number of each coin type should be declared as a whole number 4. Use the Remainder (%) operator 5. Remember to join multiple things in one statement use the , (comma) 6. Use the escape characters to format your output - pg 67 7. Don't worry about the grammar - 1 Quarters is okay

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions