Write a Java program to calculate a gamer's total XP score with a bonus per level. The program should:

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 14E: In Chapter 4, you created a program that generates a random number, allows a user to guess it, and...
icon
Related questions
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 the user’s 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 the user to exit the program without inputting the gamer's data

 

Documentation

o Include header comments that include your name, date, and description of the

program.

o Include body comments.

o Consistent indentations

o Consistent white line spaces.

Here are a couple of sample runs:
RUN1:
Welcome to the Total XP calculation program!
Do you want to enter gamer's data? Yes/No => Yes
Enter gamer's name => Mark Smith
Enter gamer's Level XP scores separated by space: L1 L2 L3 ES => 90 90 80 75
Gamer Name: Mark Smith L1-90 L2=90 L3=80 ES=75
Final XP score with bonuses=465
Do you want to enter another gamer's data? Yes/No => Yes
Enter gamer's name => Sara Parker
Enter gamer's Level XP scores separated by space: L1 L2 L3 ES => 75 85 85 75
Gamer Name: Sara Parker L1-75 L2=85 L3=85 ES=75
Final XP score with bonuses=448
Do you want to enter another gamer's data? Yes/No => No
Thank you for using the Total XP calculation program!
RUN2:
Welcome to the Total XP calculation program!
Do you want to enter gamer's data? Yes/No => No
Thank you for using the Total XP calculation program!
Transcribed Image Text:Here are a couple of sample runs: RUN1: Welcome to the Total XP calculation program! Do you want to enter gamer's data? Yes/No => Yes Enter gamer's name => Mark Smith Enter gamer's Level XP scores separated by space: L1 L2 L3 ES => 90 90 80 75 Gamer Name: Mark Smith L1-90 L2=90 L3=80 ES=75 Final XP score with bonuses=465 Do you want to enter another gamer's data? Yes/No => Yes Enter gamer's name => Sara Parker Enter gamer's Level XP scores separated by space: L1 L2 L3 ES => 75 85 85 75 Gamer Name: Sara Parker L1-75 L2=85 L3=85 ES=75 Final XP score with bonuses=448 Do you want to enter another gamer's data? Yes/No => No Thank you for using the Total XP calculation program! RUN2: Welcome to the Total XP calculation program! Do you want to enter gamer's data? Yes/No => No Thank you for using the Total XP calculation program!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT