Sedang Disiapkan

write a program c++

Simple Number Converter/Calculator

Create a program that converts and performs operations on Arabic Numbers and Roman Numerals

Your program should contain (but is not limited to) the following classes:

Number – abstract base class of all the number format classes

Integer – wrapper for the primitive integer

RomanNumeral – class for roman numeral

- All the number format classes must be instantiated with an (optional) initial value.

- For Integer instances, initial value is of type int and defaults to 0;

- RomanNumeral – initial value is empty string (“”)

- All these classes must have the following methods and must overload the following operators:

int toInteger() const;

std::string toRomanNumeral() const;

virtual bool parse() = 0; validation of values

Operators: +, -, *, /, %, >, <, >=, <=, ==, !=

- Notice the abstract method parse(). Take note that it should be called on the constructor of the class.

Integer* integ = new Integer(15);

integ->toInteger(); // returns 15

integ->toRomanNumeral(); // returns “XV”

- Allowed values are between [0, 1000]. Any operations and initializations with results beyond this range will be treated as invalid and must return -1 for toInteger() calls, and “INVALID” for toRomanNumeral()

- Arithmetic operations involving INVALID numbers should result to an INVALID object. Relational operations involving INVALID numbers should return false with some exceptions when there is equality involved.

- Also, you can create test cases for your program (but not part of the final checking).

Good luck!

Kemahiran: Pengaturcaraan C++

Lihat lagi: write program diplay image, write java program implements simple game, bus line called worlds longest street bus line write program produces billing report based passenger trips cost tripscompany lar, structure of c++ program, c++ programs list, c++ programs examples, c++ programs for beginners, c++ basics, c++ program codes, c++ programs with output, c++ tutorial, write program java script design simple calculator, write program java simple calculator application jsp servlet, write program simple entry data, write visual basic program calculate simple interest, c simple program, c++ simple program, write a c program to accept 10 or more numbers then display the numbers in two columns one column with the numbers as they were , write a C program, write a c++ program to accept 10 or more numbers then: display the numbers in two columns: one column with the numbers as they w

Tentang Majikan:
( 0 ulasan ) Sampaloc,Manila, Philippines

ID Projek: #17693293

10 pekerja bebas membida secara purata $33 untuk pekerjaan ini


HI..I am quite proficient in writing C/C++ programs as general purpose computing applications in console mode and can help you write the calculator as per given specs. I will use GNU c++ compiler in linux machine to wr Lagi

$55 USD dalam sehari
(77 Ulasan)

Hello, I am interested in this project and so wanted to discuss more it in details. I have a lot of experience in C++ programming.

$50 USD dalam sehari
(63 Ulasan)

Hi. I have review your project description. I have full experiences in Development. I am very interested in your project and also ready to start work immediately. Hoping for your soon Reply. Thank You Regard.

$25 USD dalam sehari
(21 Ulasan)

Dear Sir! I am very interested in your project. I have many experieces of Mobile developments, Java/JavaFx, C/C++, Web developments. I am full time on freelancer and I can implement all your requirements perfectly. Lagi

$20 USD dalam sehari
(19 Ulasan)

Hi, I have a lot of experience in C++ development and have been working on application development for the past 10 years. And I had been made Audio Design Tool with C++ and C# from Oct. 2016 to Feb. 2018 You can expe Lagi

$30 USD dalam sehari
(2 Ulasan)

Hi sir ..have a good day. these are very simple requirements and can be implemented within a day.i am free so i can update you [login to view URL] you very much

$30 USD dalam sehari
(3 Ulasan)
$15 USD dalam 2 hari
(0 Ulasan)

Hi! I am C/C++ programmer with some knowledge in data structures an algorithms and also design patterns. I am aure I cand help you with this task and I hope you will consider my offer. We can renegociate the price if y Lagi

$25 USD dalam 5 hari
(0 Ulasan)

Hi, I am Cpp Programmer, and I am Iranian so I am familiar with Arabic Numbers I can do the job for you, Sincerely Amirhossein

$50 USD dalam 7 hari
(0 Ulasan)

i'll do for you. thanks.

$25 USD dalam sehari
(0 Ulasan)