Mark Gab

Mark Gab

  • NA
  • 3
  • 481

need help to write a program

Nov 22 2020 9:47 AM
write a program that lets a lecturer keep track of test scores for their students. Your program should begin by asking the lecturer for a number of students in their class as well as the total number of exams that will be given to the class. Validate this information to ensure that the numbers entered are positive. Next, give the message to lecturer to enter scores for each student. Make sure that the values entered are valid (marks cannot be neagtive) —if they aren’t you will need to prompt them again. You may need to use nested loops for this; a “while” loop can be placed inside of a “for” loop as necessary. Once your program has collected all exam scores for a student it should display that student’s average and move on to the next student. When all students have been calculated the program should compute the overall average score for the entire class.

Answers (3)