[Solved] Assignment 01: Roman Numerals

$25

File Name: Assignment_01:_Roman_Numerals.zip
File Size: 273.18 KB

SKU: [Solved] Assignment 01: Roman Numerals Category: Tag:
5/5 - (1 vote)

Requirements

Write a program that

  1. Asks the user to enter an integer.
  2. Prints the integer in Roman numerals.
  3. Asks the user if theyd like to convert another integer.
    • If the user enters 'n' or 'N', end the program.
    • Otherwise, go back to step 1.
  • Handle user interaction within main().
  • Handle the conversion of an integer into a Roman Numeral in a separate, appropriately named function.

Requests

  • Please try to do this in groups, and try to use Google, etc., only for answers to questions about the language (as opposed to questions about this problem).

Assumptions

  • The user will enter the correct type of data when prompted.

Style

  • Place your solution in a solution--YOURNAME subdirectory (where YOURNAME is your GitHub username).
  • Document and format your code well and consistently. Be sure to clearly document the source of any code, algorithm, information, etc. that you use or reference while completing your work.
  • Wrap lines at 79 or 80 columns whenever possible.
  • End your file with a blank line.
  • Do not use using namespace std;. You may get around typing std:: in front of things or with, e.g., using std::cout;.
  • main() must have its own .cpp file. I suggest calling it main.cpp.
  • Include your copyright and license information at the top of every file, followed by a brief description of the files contents, e.g.

Sample Run

Please enter an integer: 123--> CXXIIIWould you like to convert another integer (Y/N)? yPlease enter an integer: 401--> CDIWould you like to convert another integer (Y/N)? yPlease enter an integer: 1299--> MCCXCIXWould you like to convert another integer (Y/N)? n

5/5 – (2 votes)

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Assignment 01: Roman Numerals
$25