Question: 2 . 2 0 convert _ pennies - AS - ADV LAB 2 . 2 0 . 1 : convert pennies ACTIVITY Write a program

2.20 convert_pennies-AS-ADV
LAB
2.20.1: convert pennies
ACTIVITY
Write a program called "convert pennies" to input an integer value representing a number of pennies and convert it to its equivalent number of Dollars, Quarters, Dimes, Nickels and Pennies.
For example, when you run the program, it must first display the following prompt:
Enter the amount of pennies to convert:
When you enter 292 on the same line as the prompt, and press Enter, the program must display the following output:
292 pennies is equal to
one dollar bills
quarters
1 dimes
1 nickels
2 pennies
Have a nice day!
Reset Lab Tutorial
Run
convert_pennies.py
# Class: CSCI1301-Section xx, Term: xx
# Programmer: Your first and last names
# Problem Description: Convert a number of pennies into its equivalent
# larger denominations.
# Input the number of pennies to convert
# Convert the amount into its equivalent denominations
# Display the result
 2.20 convert_pennies-AS-ADV LAB 2.20.1: convert pennies ACTIVITY Write a program called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!