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++
![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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ffbbf6653-4bb1-4d02-8112-3e3f5e765685%2Fd0527603-20cb-453e-a555-694c64963502%2Fj63g8pe_processed.jpeg&w=3840&q=75)
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.
![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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ffbbf6653-4bb1-4d02-8112-3e3f5e765685%2Fd0527603-20cb-453e-a555-694c64963502%2Fcdhqoer_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY