Python Worksheet

User Generated

Evb7

Computer Science

Description

Homework 4 

Problem A: Write a program that asks the user for a number. The program should respond with "positive" if the number is greater than 0, "negative" if the number is less than 0, or "zero" if the number is equal to zero.

Problem B: Write a program that asks the user for an integer between 1 and 10. The program should reply with the Roman numeral of that integer.
recall Roman numerals:

IntegerRoman Numeral1I2II3III4IV5V6VI7VII8VIII9IX10X

Problem C: (A simple game) Write a program that asks a user to insert some number of pennies, nickels, dimes, and quarters. First, the program should tell the user how many total cents this is. If the total value of the coins is equal to one dollar (i.e. 100 cents), then the program should congratulate the user for winning the game. Otherwise, the program should display a message saying that the total amount is greater than or less than one dollar (depending on what was inserted).

Explanation & Answer:
1 Script
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

The soluti...


Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags