Question: In this first assignment, youll be getting user input for 4 course assignments, calculating the totals, and determining the appropriate letter grade. Before you start
In this first assignment, youll be getting user input for 4 course assignments, calculating the totals, and determining the appropriate letter grade. Before you start to write code, think about how the program would work: Create Scanner object & declare variables Get user input for the scores for each assignment: total points possible & total points earned Add the maximum points possible Add the total points earned Calculate the course score (points earned divided by points possible) Using selections, determine the appropriate letter grade Display results (be sure the percentage for the course score is displayed correctly) This is just one way that the program could work. The steps can be ordered several different ways resulting in the same data being displayed. Display the results as shown in the sample output below. *Note: for those already familiar with Java programming, please keep this simple: no methods, no loops, no arrays, nothing fancy. Please use only the concepts discussed in class & in Chapters 1, 2, & 3. Before starting this lab, be sure to refer to the How to Submit Assignments document in eLearn for proper documentation, indention, naming conventions, etc. Points may be deducted if submitted incorrectly. Required project name: LastnameFirstname_01 Recommended package name: selections Recommended class name: CourseScore Here are 3 sample runs of the program. Your program should display something similar. User input is green text. Max Score 1: 20 Earned Score 1: 19.25 Max Score 2: 20 Earned Score 2: 18.5 Max Score 3: 20 Earned Score 3: 17 Max Score 4: 30 Earned Score 4: 28.75 Points Earned: 83.5 Total Possible: 90.0 Course Score: 92.77777777777779% Letter Grade: A Max Score 1: 10 Earned Score 1: 7.5 Max Score 2: 15 Earned Score 2: 11.5 Max Score 3: 10 Earned Score 3: 8 Max Score 4: 20 Earned Score 4: 15.75 Points Earned: 42.75 Total Possible: 55.0 Course Score: 77.72727272727272% Letter Grade: C Max Score 1: 100 Earned Score 1: 75 Max Score 2: 100 Earned Score 2: 80.8 Max Score 3: 100 Earned Score 3: 0 Max Score 4: 100 Earned Score 4: 82 Points Earned: 237.8 Total Possible: 400.0 Course Score: 59.45% Letter Grade: F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
