Jump to content


Practicing some programs online---C+


  • Please log in to reply
No replies to this topic

#1 Guest_Ash_*

Guest_Ash_*
  • Guests

Posted 23 October 2008 - 07:06 PM

anyone know how to do this? saw it online and didnt have no answer..was trying to practice some c+ programs


Create an application that will give the user the choice of displaying the Roman numeral equivalence of a number between 1 and 10 or displaying a count of Roman numerals from 1 to 10.

Your program should not end before the user decides to end it

Use the if, while, for, and switch structures in the code.

Output should resemble:
"This program can display any roman numeral between 1 and 10.
This program can also count from 1 to 10 in Roman numerals.

Enter the #1 to display the roman equivalent of a #.
Enter the #2 to count from 1 to 10 in Roman numerals.
Enter any other number to end the application.

Enter your choice: 1
Enter any # from 1 to 10: 8
Roman numeral Decimal
VIII 8

it repeats the 1 and 2 options than enter your choice: 2

Roman Numeral Decimal
I 1
II 2
III 3
.....
X 10

repeats 1 and 2 option than

enter ur choice: 5

ends program




--------------------------------------------------------------------------------




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users