![jaasminfloress](/avatars/42431.jpg)
jaasminfloress
23.11.2019 •
Computers and Technology
Following the example of the circle class, design a class named stock that contains:
a)- a string data field named symbol for the stocks symbol.
b)- a string data field named name for the stocks name.
c)- a double data field named previousclosingprice that stores the stock price for the previous day.
d)- a double data field named currentprice that stores the stock price for the current time.
e)- a constructor that creates a stock with a specified symbol and name.
f)- a method named get changepercent() that returns the percent- age changed from previous closingprice to currentprice.
write a test program that creates a stock object with the stock symbol orcl, the name oracle corporation,and the previous closing price of 34.5. set a new current price to 34.35 and display the price-change percentage.
Solved
Show answers
More tips
- O Other How to Accidentally Get a Rare Coin with Your Change and How to Know Its Value?...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
Answers on questions: Computers and Technology
- H History What is the talles animal...
- M Mathematics Suppose a given SAS triangle with one leg is 10 feet, the angle is 40 degrees and the other leg is 13 feet what is the are of the triangle ?...
- M Mathematics Four friends want to share two large pizzas equally. Each pizza is cut into ten slices. How many slices will each person get?...
- M Mathematics 1+1000000000000000000000000000000000000000000000000000000000000000000000011111111111199999999999999999922222222222222222222222222222222222222222222222222=???...
Ответ:
the answer is c
Explanation:
because if she making a list of reward, that means she plan on choosing rewards that will make her feel motivated.