Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) Write a Python program that asks the user to enter students' grades. The program should keep accepting grades and stops once a negative value

2) Write a Python program that asks the user to enter students' grades. The program should keep accepting grades and stops once a negative value is entered. Finally, the program prints the number of grades entered, summation and average of all grades. Here is an example of the program output: Enter the grade of student 1: 70 Enter the grade of student 2: 0 Enter the grade of student 3: 80.75 Enter the grade of student 4: -1 You entered grades for 3 students The summation of grades is 150.75 and the average is 50.25
image text in transcribed
2) Write a Python program that asks the user to enter students' grades. The program should keep accepting grades and stops once a negative value is entered. Finally, the program prints the number of grades entered, summation and average of all grades. Here is an example of the program output: Enter the grade of student 1: 70 Enter the grade of student 2: 0 Enter the grade of student 3: 80.75 Enter the grade of student 4: -1 You entered grades for 3 students The summation of grades is 150.75 and the average is 50.25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

preference for well defined job functions;

Answered: 1 week ago