AMPS | THARC | KE8QZC | SFW | TSW
ORCID iD icon

Return to the class
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 Numeral
1I
2II
3III
4IV
5V
6VI
7VII
8VIII
9IX
10X


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).