Question: Create a java that shown the following: List inputs that break code at the top of your Stock Market file. Here are the Traders, and

Create a java that shown the following:

Create a java that shown the following: List inputs that break code

at the top of your Stock Market file. Here are the Traders,

List inputs that break code at the top of your Stock Market file. Here are the Traders, and their stock change percentages: Lucky's stock change percentage : 0.61 Grumpy's stock change percentage : 0.19 Happy's stock change percentage : 0.81 Sleepy's stock change percentage : 0.42 Trader Lucky; spent: $0.0; current $1000.0; net $1000.0 CS110 Tatiana Harrison, CWU, IIW 5: Methods and Classes Page 2 of 3 Trader Grumpy; spent: $0.0; current $1000.0; net $1000.0 Trader Happy; spent: $0.0; current $1000.0; net $1000.0 Trader Sleepy; spent: $0.0; current $1000.0; net $1000.0 How much money should each Trader bet? Enter 0 to quit 300 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $300.0; current $100.0; net $-200.0 Trader Grumpy; spent $300.0; current $100.0; net $-200.0 Trader Happy; spent $300.0; current $1600; net $1300.0 Trader Sleepy; spent $300.0; current $1600.0; net $1300.0 Trader Grumpy; spent: $0.0; current $1000.0; net $ 1000.0 Trader Happy; spent: $0.0; current $1000.0; net $1000.0 Trader Sleepy; spent: $0.0; current $1000.0; net $1000.0 How much money should each Trader bet? Enter 0 to quit 300 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $300.0; current $100.0; net $ 200.0 Trader Grumpy; spent $300.0; current $100.0; net $-200.0 Trader Happy; spent $300.0; current $1600; net $1300.0 Trader Sleepy; spent $300.0; current $ 1600.0; net $1300.0 How much money should each Trader bet? Enter 0 to quit 160 Lucky lost money Grumpy lost money Happy lost money Sleepy made money Trader Lucky; spent $460.0; current $-1280.0; net $-1740.0 Trader Grumpy; spent $460.0; current $-1280.0; net $-1740.0 Trader Happy; spent $460.0; current $220.0; net $-240.0 Trader Sleepy; spent $460.0; current $2520.0; net $2060.0 How much money should each Trader bet? Enter 0 to quit 120 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $580.0; current $-3020.0; net $-3600.0 Trader Grumpy; spent $580.0; current $-3020.0; net $-3600.0 Trader Happy; spent $580.0; current $1380.0; net $800.0 Trader Sleepy; spent $580.0; current $3680.0; net $3100.0 How much money should each Trader bet? Enter 0 to quito Figure 1: sample output of the program Stock Market.java List inputs that break code at the top of your Stock Market file. Here are the Traders, and their stock change percentages: Lucky's stock change percentage : 0.61 Grumpy's stock change percentage : 0.19 Happy's stock change percentage : 0.81 Sleepy's stock change percentage : 0.42 Trader Lucky; spent: $0.0; current $1000.0; net $1000.0 CS110 Tatiana Harrison, CWU, IIW 5: Methods and Classes Page 2 of 3 Trader Grumpy; spent: $0.0; current $1000.0; net $1000.0 Trader Happy; spent: $0.0; current $1000.0; net $1000.0 Trader Sleepy; spent: $0.0; current $1000.0; net $1000.0 How much money should each Trader bet? Enter 0 to quit 300 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $300.0; current $100.0; net $-200.0 Trader Grumpy; spent $300.0; current $100.0; net $-200.0 Trader Happy; spent $300.0; current $1600; net $1300.0 Trader Sleepy; spent $300.0; current $1600.0; net $1300.0 Trader Grumpy; spent: $0.0; current $1000.0; net $ 1000.0 Trader Happy; spent: $0.0; current $1000.0; net $1000.0 Trader Sleepy; spent: $0.0; current $1000.0; net $1000.0 How much money should each Trader bet? Enter 0 to quit 300 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $300.0; current $100.0; net $ 200.0 Trader Grumpy; spent $300.0; current $100.0; net $-200.0 Trader Happy; spent $300.0; current $1600; net $1300.0 Trader Sleepy; spent $300.0; current $ 1600.0; net $1300.0 How much money should each Trader bet? Enter 0 to quit 160 Lucky lost money Grumpy lost money Happy lost money Sleepy made money Trader Lucky; spent $460.0; current $-1280.0; net $-1740.0 Trader Grumpy; spent $460.0; current $-1280.0; net $-1740.0 Trader Happy; spent $460.0; current $220.0; net $-240.0 Trader Sleepy; spent $460.0; current $2520.0; net $2060.0 How much money should each Trader bet? Enter 0 to quit 120 Lucky lost money Grumpy lost money Happy made money Sleepy made money Trader Lucky; spent $580.0; current $-3020.0; net $-3600.0 Trader Grumpy; spent $580.0; current $-3020.0; net $-3600.0 Trader Happy; spent $580.0; current $1380.0; net $800.0 Trader Sleepy; spent $580.0; current $3680.0; net $3100.0 How much money should each Trader bet? Enter 0 to quito Figure 1: sample output of the program Stock Market.java

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!