break The codes into.hand cpp Write a program that converts a number entered in Roman numer- als to a positive integer. Your program should consist of a clams, say, romanType. An object of type romanType should do the following: a Store the number as a Roman numeral. b Convert and store the number as a positive integer. Print the number as a Roman numeral or positive integer as requested by the user. The integer values of the Roman numerals are: M 1000 500 100 D L. 50 10 V 5. d. Test your program using the following Roman numerals: MCXIV, CCCLIX, and MDCLXVI|
break The codes into.hand cpp Write a program that converts a number entered in Roman numer- als to a positive integer. Your program should consist of a clams, say, romanType. An object of type romanType should do the following: a Store the number as a Roman numeral. b Convert and store the number as a positive integer. Print the number as a Roman numeral or positive integer as requested by the user. The integer values of the Roman numerals are: M 1000 500 100 D L. 50 10 V 5. d. Test your program using the following Roman numerals: MCXIV, CCCLIX, and MDCLXVI|
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Wrote programming c++

Transcribed Image Text:break The coodes into.hand
Cpp
Write a program that converts a number entered in Roman numer-
als to a positive integer. Your program should consist of a class, say,
romanType. An object of type romanType should do the following:
Store the number as a Roman numeral.
a.
Convert and store the number as a positive integer.
Print the number as a Roman numeral or positive integer as
requested by the user.
b.
The integer values of the Roman numerals are:
M.
1000
D
500
100
50
10
Test your program using the following Roman numerals: MCXIV,
CCCLIX, and MDCLXVI|
d.

Transcribed Image Text:Breakx The codes into.hand.cpp
Write the definition of a class that has the following properties: (1, 2, 3, 5)
a.
The name of the class is stockType.
The class stockType has the following instance vari-
ables: name of type string,
currentPrice, lowPric0OETheDay, highPriceofTheDay,
b.
symbol of type string;
previousDaycloningPrice,
fiftyTwoWeksHigh, and
fiftyTwoweeksLow are of type double.
The class stockType has the following member functions.
(Make each accessor function constant.)
print-outputs the data stored in the member variables with the
appropriate titles
setStockNama-function to set the stock name
getName-value-returning function to return the stock name
sotsymbol-function to set the stock symbol
getsymbol-value-returning function to return the stock symbol
setCurrentPrice-function to set the current price of the stock
getCurrentPrice-value-returning function to return stock's current
price
setLowPriceoITheDay-function to set stock's lowest price of the day
getLowPriceoIThoDay-value-returning function to return stock's
lowest price of the day
setHighPriceorTheDay-function to set the stock's highest price of
the day
getHighPriceorTheDay-value-returning function to return stock's
highest price of the day
setPreviousDayClosingPrice-function to set the stock's previ-
ous day closing price
getProviousDayClosingPrice-value-returning function to return
stock's closing price of the previous day
setPiftyTwoweeksHigh-function to set the stock's fifty two
weeks highest price
gotPiftyTwoWeeksHigh-value-returning function to return
stock's fifty two weeks highest price
setPiftyTwoWeeksLow-function to set the stock's fifty two
weeks lowest price
getPiftyTwoWeeksLow-value-returning function to return stock's
fifty two weeks lowest price
percentGainLoss-value returning function to determine the
percentage gain or loss between the current price and previous
day closing price.
constructor-with default parameters: The default value of name
and symbol is the empty string ", and the default value of remain-
ing instance variables is 0.
Write the definition of the member functions of the class
stockType as described in Part c.
d.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY