Programming Practice a) Write a program which allows a teacher to determine the min, max, and average grade from grades entered. The teacher will continuously enter grades until the sentinel is specified. For this example, a grade of -1 will be used to denote grading is completed. The min, max, and average grade should then be displayed to the teacher. This program should not accept invalid grades to be used [0, 100].

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
Question
Programming Practice
a) Write a program which allows a teacher to determine the min, max, and average grade from
grades entered. The teacher will continuously enter grades until the sentinel is specified. For
this example, a grade of -1 will be used to denote grading is completed. The min, max, and
average grade should then be displayed to the teacher. This program should not accept invalid
grades to be used [0, 100].
 
b) Write a program which outputs prime numbers up to a specified number. For example, if a user
entered the number 25, the program would output the prime numbers between 1 and 25.
 
c) Write a program which converts a sum of currency into the highest available denominations in
terms of coins. For example, the user inputs the number 4.25. The program would output that
it takes 2 Toonies and 1 Quarter. Ensure that the result uses the least amount of coins possible.
This can be solved mathematically or using loops.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Function
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr