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
The soluti...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
Into Thin Air
by Jon Krakauer
The Kite Runner
by Khaled Hosseini
Blink
by Malcolm Gladwell
A Portrait of the Artist as a Young Man
by James Joyce
You Are a Badass
by Jen Sincero
Catching Fire
by Suzanne Collins
Wuthering Heights
by Emily Brontë
Cat on a Hot Tin Roof
by Tennessee Williams
The Eyes Were Watching God
by Zora Neale Hurston