Question: Q3. Write a test program that: 1. Create a Random object from the Random class (java.util. Random). - We will use this object for the

 Q3. Write a test program that: 1. Create a Random object

Q3. Write a test program that: 1. Create a Random object from the Random class (java.util. Random). - We will use this object for the ID number of Stock between (0 to 100- 2. Ask a user for the name and symbol of Stock. So, you should create two string variables in the test program 3. Create a Stock object with the stock symbol (from the user), the name of symbol (from the user), and ID (from Random object by using nextInt(100) method). 4. Ask the user for the previous closing price and the current price. Note: Don't create two variables for them. You can use the stock object to assign the values of these two variables from the user. 5. Display the stock name, the stock symbol, the stock ID, and the price-change percentage

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!