Question: Initialize variables Assign 0 to variables numberOfStudents, totalStudents, count, average 2 . Create loop while numberOfStudents is greater than or equal to 0 . 3

Initialize variables
Assign 0 to variables numberOfStudents, totalStudents, count, average
2.
Create loop while numberOfStudents is greater than or equal to 0.
3.
Within the body of the while loop, create an input function with the prompt, "Enter number of students or -1 to finish: " Convert to integer and assign input value to numberOfStudents.
4.
Create an if statement to check whether numberOfStudents is greater than or equal to 0.

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 Programming Questions!