Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started