Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 3 Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date. Write a

image text in transcribedimage text in transcribedimage text in transcribed

Assignment 3 Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date. Write a Java program to calculate a gamer's total XP score with a bonus per level. The program shoulc (1) Prompt and read 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+L10.20+L2+L20.30+L3+L30.50+ES+ES0.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 Test program: A minimum of 3 test cases should be supplied in the form of a table with columns indicating the input values, expected output, actual output, and if the test case passed or failed. This table shouldcontain 4 columns with appropriate labels and a row for each test case. An example template is shown below. Note that the actual output should be the actual results you receive when running your program and applying the input for the test record. The three minimum test cases should include: (1) Run for one gamer's data (2) Run for another gamer's data (3) Start program but select to exit without inputting gamer's data Make sure your Java program is using the recommended style such as: - Javadoc comment upfront with your name as author, date, and brief purpose of the program - Comments for variables and blocks of code to describe major functionality - Meaningful variable names and prompts - Identifiers are written in upper CamelCase - Class name starts with upper case letter and variables in lower case letter - Constants are written in All Capitals - Use proper spacing and empty lines to make code human-readable Capture execution: You should capture and label screen captures associated with compiling your code and running each of your 3 test cases. 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 90908075 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 => 75858575 Gamer Name: Sara Parker L1=75 L2 =85 L 3=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! Example test cases: Submission requirements Deliverables include a Java program (.java) and a single Word (or PDF) document. The Java and Word/PDF files should be named appropriately for the assignment (as indicated in the Submission Requirements document. The word (or PDF) document should include screen captures showing the successful compiling and running of each of the test cases. Each screen capture should be properly labeled and indicate what the screen capture represents. The test cases table should be included in your Word or PDF document and properly labeled as well. Submit your files to the Assignment 3 submission area no later than the due date listed in your online classroom. Grading Rubric: The following grading rubric will be used to determine your grade

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions

Question

Define the term contribution margin . Discuss.

Answered: 1 week ago

Question

Fibonacci Folge assembler

Answered: 1 week ago