Write a program that can calculate the class average for a number of students. The user should be able to enter the grades, use sentinel-controlled repetition to manage input. (python) Sample Output: Enter grade, -1 to end: 75 Enter grade, -1 to end: 94 Enter grade, -1 to end: 97 Enter grade, -1 to end: 88 Enter grade, -1 to end: 70 Enter grade, -1 to end: 64 Enter grade, -1 to end: 83 Enter grade, -1 to end: 89 Enter grade, -1 to end: -1 class average is 82.5 2- Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. (Hint: Use the modulus operator.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 2E
icon
Related questions
Topic Video
Question
100%

1- Write a program that can calculate the class average for a number of students. The user should be able to enter the grades, use sentinel-controlled repetition to manage input. (python)

Sample Output:

Enter grade, -1 to end: 75

Enter grade, -1 to end: 94

Enter grade, -1 to end: 97

Enter grade, -1 to end: 88

Enter grade, -1 to end: 70

Enter grade, -1 to end: 64

Enter grade, -1 to end: 83

Enter grade, -1 to end: 89

Enter grade, -1 to end: -1

class average is 82.5

2- Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. (Hint: Use the modulus operator.

Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Instruction Format
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr