Question: Can anyone help me with this program, but without using array and function, just the loop??? objective In this assignment you will implement nested loops

 Can anyone help me with this program, but without using array
and function, just the loop??? objective In this assignment you will implementCan anyone help me with this program, but without using array and function, just the loop???

objective In this assignment you will implement nested loops in a program to assign grades to students in a class at the end of a semester Description: The program should first input the number of scores that will be a fixed number for all students. Then using a while loop, the program should input a student's ID. The while loop ends when the users enters a character other than Y' for the student ID. For each student, the score must be entered using a loop (for loop that iterates from 1 till number of scores). This loop will be nested inside the outer while loop that inputs the IDs. Calculate the average of scores made by each student and assign one of the three possible grades: A, B, C, D, F, and I. When entering the scores, if a student had an excused absence for a score it will be entered as -1. If a student has 2 or more excused absences, give the student a grade of I. If the student has less than 2 excused absences then compute the average and determine the grade. Of course for a student with 1 excused absence the average should not count the -1 score. For example, if the input scores for a student were 53, -1, 49 and 50, your program would ignore the -1, since this is the student's only absence. For this student average will be (53+49+50)/3.0. Grades A, B, C, D, and F are assigned based on the average score as: A: avg, score 90 B: 80 avg. score 90 C: 70 avg, score 80 D: 60 avg, score

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!