Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 3 Exercise Objectives To understand and apply basic problem-solving techniques. To understand and apply Nested while Loops only in useful applications. Problem Description A

image text in transcribedimage text in transcribed

Exercise 3 Exercise Objectives To understand and apply basic problem-solving techniques. To understand and apply Nested while Loops only in useful applications. Problem Description A University has N Structured programming classes. Write and run a C program that Reads the number of the Structured programming class classes the university (as an integer) should be more than zero, if zero or lower error message should be printed and ask the user to reenter a value until a number greater than zero being entered. Reads for each class the number of students in the class (as an integer) followed by the student final grades out of 100 (each greed is a floating-point number entered on a separate line). If number of students in a class lower than or equal zero error message should be printed and ask the user to reenter a value until a number greater than zero being entered. The program should read this information for all N departments and compute and print the following: 1. The average grades in each class (as a float) 2. The average grades in the whole university (as a float) 3. The number of students in the university taking Structured programming class. 3. The number of students in the university whose grades are between 70 and 95 JD inclusive. If the user input an unacceptable number as a grades (higher than 200 or lower than 35) the program will let the user to reenter a value until an acceptable number is entered. Add your name, your University ID number and section number as a comment at the beginning of this program. Sample output: Input the number of Structured programming in the university: 2 Input the number of students in the first class: 3 Input the 1 student grade 80.2 Input the 2 student grade 40.5 Input the 3 student grade 90.3 Input the number of students in the second class: 2 Input the 1 student grade 93.2 Input the 1 student grade 50.3 The overall average of students: 70.9 The number of structured programming in the university: 5 The number of students who's grade between 70 and 95 is 3

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions