Please program in C The requirements for the homework 7 is : Grading Rubric Requirement: Header Comment Body Comment Com

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please program in C The requirements for the homework 7 is : Grading Rubric Requirement: Header Comment Body Comment Com

Post by answerhappygod »

Please program in C
Please Program In C The Requirements For The Homework 7 Is Grading Rubric Requirement Header Comment Body Comment Com 1
Please Program In C The Requirements For The Homework 7 Is Grading Rubric Requirement Header Comment Body Comment Com 1 (159.14 KiB) Viewed 18 times
The requirements for the homework 7 is :
Please Program In C The Requirements For The Homework 7 Is Grading Rubric Requirement Header Comment Body Comment Com 2
Please Program In C The Requirements For The Homework 7 Is Grading Rubric Requirement Header Comment Body Comment Com 2 (142.48 KiB) Viewed 18 times
Grading Rubric Requirement:
Header Comment
Body Comment
Compiles
Gets Max
Gets Average
Gets sum
Gets count
Catches negative number
THANK YOU IN ADVANCE :)
> This assignment is a continuation of Classwork 7. (NOTE: You must still submit Classwork 7 and Homework 7 separately.) For this homework assignment, embellish your program from Classwork 7 with the following features: • Since bar graphs do not make sense for negative numbers, add another inner while loop to your program that keeps pestering the user until they enter a number strictly greater than zero. NOTE: This means you'll have to modify your if-else if-else block from Classwork 7. • After the outer while loop terminates, print out the largest number entered by the user. • After the outer while loop terminates, print out the average number entered by the user. Use a comment when you're doing this calculation to explain why you can calculate largest number inside of the outer while loop, but average is best computed outside of it.
• Think about how to calculate the sum of the numbers entered by the user. Use a float variable so you get a floating-point value when you compute the average. Since the numbers entered by the user must be positive, you can initialize the maximum value to zero. Explain why this works in the variable declaration comment. • Make sure that you handle the case where the user types in quit without entering any numbers. • NOTE: You cannot use a break statement to break out of two nested while loops. A break statement in an inner while loop only breaks from the inner-most loop that contains the break statement. It will NOT exit from the outer loop. Instead, an option is to use another variable to keep track of when a break in the outer loop would be appropriate. >
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply