Question: Exercise 1 - Nested Loop Exercise Objectives Nested Loops Examples ( such as printing patterns ) Problem Description Write and run a C program that
Exercise Nested Loop
Exercise Objectives
Nested Loops
Examples such as printing patterns
Problem Description
Write and run a program that finds the minimum grade for a number of sections the minimum for each section separately and then the minimum for all sections together Begin by asking the user about the number of sections. For each section, ask the user about the number of students:
Define a function called float computeminsectionsint that takes an integer arguments where is the number of sections. Using nested loops, the function asks about number of students for each section, then it asks the user to insert the grades for those students. It prints the minimum grade for each section. It also finds and returns the minimum grade of all sections.
In the main:
Ask and prompt the user to insert an integer number called nosections.
Call computeminsections function to find and display the minimum grade for each section and all sections, as shown below.
Sample Output:
please insert number of sections:
Enter the number of students for section # :
Enter grade in the range for student # :
Enter grade in the range for student # :
Enter grade in the range for student # :
minimum grade
Enter the number of students for section # :
Enter grade in the range for student # :
Enter grade in the range for student # :
minimum grade
Enter the number of students for section # :
Enter grade in the range for student # :
Enter grade in the range for student # :
Enter grade in the range for student # :
Enter grade in the range for student # :
minimum grade
minimum grades in the all sections
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
