Question: Write a Java program to calculate a gamer's total XP score with a bonus per level. The program should: (1) Prompt and read users input

Write a Java program to calculate a gamer's total XP score with a bonus per level. The program should: (1) Prompt and read users input for the gamer's name, Level 1 XP (L1), Level 2 XP (L2), Level 3 XP (L3), and Engagement score (ES). User Scanner to read input. (2) Each XP score input should be in whole numbers between 10-100 and in increments of 5. The total XP score with bonuses should be calculated as follows: L1+L1*0.20+L2+L2*0.30+L3+L3*0.50+ES+ES*0.60 (3) Output the gamer's information and the total calculated XP score (including bonuses). (4) Prompt the user as to whether they want to calculate total XP for another gamer and repeat the input/output processing (5) Allow user to exit the program without inputting gamer's data

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!