Question: in c language i need help on excersise 2 & 3 Exercise 2 Similarly to Ex. 1, use now an infinite while loop instead. Calculate

in c language i need help on excersise 2 & 3 in c language i need help on excersise 2 & 3 Exercise

Exercise 2 Similarly to Ex. 1, use now an infinite while loop instead. Calculate the GPA of the courses entered until the user enters 'Z' Exercise 3 Inside a do while loop ask user to enter two numbers (use a single scanf function). Inside the same loop ask the user whether they wish to find the min or max of the values entered. If the user enters a 0 call the minFunction, if the user enters a 1 call the maxFunction, otherwise print Not valid input. Pass the two numbers entered as parameters to the functions. Inside min Function and maxFunction calculate the minimun and the maximum values, respectively, and print. Break the loop when the user enters -999 -999 (values such as-999 are used as a sentinel to terminate a program) Exercise 2 Similarly to Ex. 1, use now an infinite while loop instead. Calculate the GPA of the courses entered until the user enters 'Z' Exercise 3 Inside a do while loop ask user to enter two numbers (use a single scanf function). Inside the same loop ask the user whether they wish to find the min or max of the values entered. If the user enters a 0 call the minFunction, if the user enters a 1 call the maxFunction, otherwise print Not valid input. Pass the two numbers entered as parameters to the functions. Inside min Function and maxFunction calculate the minimun and the maximum values, respectively, and print. Break the loop when the user enters -999 -999 (values such as-999 are used as a sentinel to terminate a program)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!