Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

What information is relevant to solve this problem and why?

Answered: 1 week ago

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago