Question: Assignment 4 Calculating Final Grade Due is Weels (Tuesday) 7. Test your program for different input arrays: [1,1,1,1,1,1,1,1,1,1, 1, 1, 1,1,1,1,1,1,1, 121/105-'A' (1,1,0,1,1,0,1,1,0,1,1,1,0,1,0,1,1,1,0, 121/72-C (1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,11_//61

 Assignment 4 Calculating Final Grade Due is Weels (Tuesday) 7. Test

Assignment 4 Calculating Final Grade Due is Weels (Tuesday) 7. Test your program for different input arrays: [1,1,1,1,1,1,1,1,1,1, 1, 1, 1,1,1,1,1,1,1, 121/105-'A' (1,1,0,1,1,0,1,1,0,1,1,1,0,1,0,1,1,1,0, 121/72-C (1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,11_//61 -'D {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1 // 50-'F' 8. Name your project 'LastName Calculatioe Grede'. Submit it on Bb (Assignment 4). Objective: Using and understanding decision making, loops (if and for statements arrays and helper methods. Write a program that calculates the student's final grade for a test with 20 multiple questions. Instructions 1. Use the flow chart you created for the Week 3 in class Exercise (see Week3 Materials on Bb) as a starting point. 2. Use an array of integers to store the test scores (0-incorrect answer, 1-correct answer). Initialize it as follows: int [] scores = {1, 1, 1, 1, 1, 1,0, 11, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1); 3. If the student answered the question right, add 5 points to the running total. If the student didn't answer correctly subtract. 5 points from the running total 4. The running total is initialized with 5 points (so the student receives 5 points extra credit). 5. To define the final grade use the grading scale below Score 1 Grade 90+ A 80-89 B 70-79 60-69

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!