Following the example of the circle class, design a class named stock that contains:
a)- a st...
![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 23.11.2019 04:31, maguilarz2005
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.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:00, deathfire5866
Determine whether the following careers would require training or college.
Answers: 1
![image](/tpl/images/cats/informatica.png)
Do you know the correct answer?
Questions in other subjects:
![Konu](/tpl/images/cats/pravo.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mir.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2021 18:10
![Konu](/tpl/images/cats/biologiya.png)
Biology, 05.07.2021 18:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2021 18:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2021 18:10
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
English, 05.07.2021 18:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2021 18:10