Question: .java please Your program Grading Scale: (20 points possible - First point free) Includes the block comment at the top with a description of the



Your program Grading Scale: (20 points possible - First point free) Includes the block comment at the top with a description of the program with Input, Computation and Output sections and name and date with standard @ (entries) (1 point) Uses standard indentation INCLUDING IF BLOCKS! (up to 2 points) Declare all variables in one section at the top of the program as shown in class (1 point) Include line comments for the main blocks of code (Given! - declarations, computation section, output section - include meaningful comments) with a blank line above each of these comments to increase readability ( up to 2 points) Includes at least two sample executions in a block comment that is included down below the last closing curly brace (1 point) Includes blank lines for readability (But not between all statements! But, do separate sections in the main as we have done in class.) As a result of executing your project, it will Echos your first and last name as shown in the output below where you read it in. Include your name as part of the output for the first execution and includes another name as read in for the second execution (-5 point) Includes at least I line of dashes as part of your output (as shown) (-5 point) - Includes blank lines for readability in the output (as shown) (1 point) Includes same spacing (as in includes one blank space before the cursor when reading values) AND for prompts and reads and have the input on the same line as the prompt (1 point) When reading in a String, allows for blank spaces before and after and mixed case (1 point) . The program will fix ALL Strings (including EID) that are typed in mixed case to be in the format of all upper case letters (with no extra leading or trailing blank spaces) (1 point) . The program will generate values as int and store them as double (1 point) Program generates correct range of random numbers for all scores. (2 points) . The program will compute the final score based on: If the Score on Test 3 is greater than 93, then the Final Score is equal to the Test 3 score. Otherwise, the Final Score is based on the average of all three scores. (2 points) Final grade computed based on correct use of if, else-if, else (2 points) - Computes correct results (2 points) You will run this same program twice. Read in your last name for first run (some other first name for second execution) Read in your last name for first run (some other first name for second execution) Read in your EID for first run and other EID for second execution (can be read in as e12345678) Echo (print out what you have read in - all in capital letters!) Generate 3 test scores between 50 and 100. Generate these and store them as int variables Computation: 1) Determine the average as a double 2) Determine final score: If the third test generate score is greater than 93, then the final score becomes the test 3 score. Otherwise, it remains the same as the average of the three scores. 3) Determine the grade based on: 90 and over is an A 80 and above, yet below 90 is a B 70 and above, yet below 80 is a C 60 and above, yet below 70 is a D All else is an E. Output: See sample executions Algorithm (Can also be used as your comments within your main method): Declare the Scanner object and Random object for use here Declare variables For each, the first name, last name, and EID, Prompt and read in each Echo the first, last and EID Generate (and store) the three scores as doubles Determine average Determine final Score Determine letter Grade Print Results Sample execution with your input and generated scores. Includes output for first execution. Make something up for the second execution! Do include dashes, blank lines, spaces, and echo in your output as shown in THIS SAMPLE! Enter YOUR last and first name in mixed Sample run #1: case. (Use your first and last name for this first sample run!) Enter Last name of Student: YOURLast Enter First name of Student: YOURFirst Enter your EID number in lower case Enter EID: e12345678 Last Name : YOURLAST ECHO back to the user, in all upper case First Name: YOURFIRST letters. (Also take care of leading and EID: E12345678 trailing spaces!) Score 1 : 94.0 Score 2: 96.0 The average is computed and displayed Score 3: 81.0 (yes, it might be ugly!) Average of the three scores: 90.33333333333333 The final score is the average unless the Final Score: 90.33333333333333 Final Grade: A third score is greater than or equal to 93. If it is, then the final score is equal to the third score! The Final grade is based on the Final Score Sample run #2: Enter Last name of Student: Smith Enter First name of Student: John Enter EID: e12345678 Last Name: LAST First Name: FIRST EID: Other E12345678 Make up a name and ID, but use these scores for second sample execution please! Score 1: 82.0 Score 2: 88.0 Score 3: 94.0 Average of the three scores: 88.0 Final Score: 94.0 Final Grade: A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
