Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++, write code to: Objectives - Review object oriented program and apply software engineering concept (Implement three files) Roman converter Program - (roman.h; romanlmp.cpp;

IN C++, write code to:

image text in transcribed

Objectives - Review object oriented program and apply software engineering concept (Implement three files) Roman converter Program - (roman.h; romanlmp.cpp; romanDriver.cpp) Write a program that converts a number entered in Roman numerals to decimal form. You program should consist of a class named romanType. An object of romanType should do the following: Store the number as a Roman numeral. . Convert and store the number into decimal form. Print the number as a Roman numeral or decimal number as requested by the user. The decimal values of the roman numerals are: M 1000 D 500 100 L 50 10 V 5 1 Roman rules: - A larger numeral preceding a smaller numeral means addition, e.g. LX is 60 - A smaller numeral preceding a larger numeral means subtraction, e.g. XL is 40. Test your program using the following Roman numerals: MDCLXVI and MMMDCCXXIV Sample output: Enter a roman number: MDCLXVI The equivalent of the Roman numeral MDCLXVI is 1666 Try another number (y)? Y Enter a roman number: MMMDCCXXIV The equivalent of the Roman numeral MMMDCCXXIV is 3724 Try another number (y)? N Thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions