Write a program that creates a 10 element double array to store program grades and reads 10 values between 0.0 and 100.0 from the user. After the values are read and stored in the array, your program should (a) display the values in the array with 1 digit to the right of the decimal point, (b) output the minimum value, (c) output the maximum value, and (d) output the average program grade. Successful completion of this program will require that you use at least TWO loops: the first should store the values in the array, and the second will do the process/calculations. If your program doesn't have TWO loops, you'll get to do it again. Challenge: Write your program such that invalid program grades are rejected and not added to the array. Valid program grades are between 0.0 and 100.0 inclusive.
Write a program that creates a 10 element double array to store program grades and reads 10 values between 0.0 and 100.0 from the user. After the values are read and stored in the array, your program should (a) display the values in the array with 1 digit to the right of the decimal point, (b) output the minimum value, (c) output the maximum value, and (d) output the average program grade. Successful completion of this program will require that you use at least TWO loops: the first should store the values in the array, and the second will do the process/calculations. If your program doesn't have TWO loops, you'll get to do it again. Challenge: Write your program such that invalid program grades are rejected and not added to the array. Valid program grades are between 0.0 and 100.0 inclusive.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 23PE
Related questions
Question
c#
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage