Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 4 Write a program that request an instructor to enter the number of students in his class, then asks the grades of all students
Exercise 4 Write a program that request an instructor to enter the number of students in his class, then asks the grades of all students sequentially and ends up computing the average class grade. Note that there is no average if there are no students! Sample runs below: How many students are in your class? 4 What is the graded of student \#1? 85 What is the graded of student \#2? 90 What is the graded of student \#3? 95 What is the graded of student \#4? 92 The average class grade is 90.5 How many students are in your class? 0 You had no students in the class
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