Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just While - loop. otherwise no credit. Question: Calculate the average of students: 1 ask user how many students are in the class. 2 .

Just While-loop. otherwise no credit.
Question: Calculate the average of students:
1 ask user how many students are in the class.
2. fot each student ask how many grades do you bave
3. ask user to enter grades for that student and for each grade validate it
4 after getting valid grades for each student then calculate the average for that student.
Sample output:
How many students are in the class: 2
Student I: how many grades you have: 3
Student1, Grade1: 90
Student, Grade2: -1
Error: Invalid grade enter again.
Student1, Grade2:90
Student 1, Grade3:90
Average for Student 1 is 90
Student 2: How masy grades you have? 2
Student 2, Grade 2:80
Student 2, Grade 2:80
The average for student 2 is 80
End of the program
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Describe and explain the career path for tour operations?

Answered: 1 week ago

Question

Th ey probably would have treated me like a criminal.

Answered: 1 week ago