Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LAB ACTIVITY 2 . 2 0 . 1 : convert _ pennies Write a program called convert _ pennies to input an integer value representing
LAB
ACTIVITY
: convertpennies
Write a program called "convertpennies" to input an integer value representing a number of pennies and convert it to 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 on the same line as the prompt, and press Enter, the program must display the following output:
pennies is equal to
one dollar bills
quarters
dimes
nickels
pennies
Have a nice day!
Browser incompatibility detected, some instance functionality may not work as expected. See doc for more information
convertpennies.py
Reset Lab
# Program name: convertpennies.py but
main.py in zyBooks
# Class: CSCISection xx Term: xx
# Programmer: Marilyn Martinez
# Problem Description: Convert a number of pennies into its equivalent
# larger denominations.
# Input the number of pennies to convert
pennies int input Enter the amount of pennies to convert:
dollars pennies
pennies pennies
quarters pennies pennies pennies dimes pennies pennies pennies nickles
# Convert the amount into j an
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started