Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make the average of the marks Write program by pythone Write a program that, with a loop, sums numbers provided by the user until a

Make the average of the marks

Write program by pythone

Write a program that, with a loop, sums numbers provided by the user until a zero is provided (use a while loop with a sentinel value).

This time, write the same previous program and use a for loop with a break instruction to stop the loop. Use a significant number in the range method to allow an almost arbitrary number of exams in input.

Select one of the previous programs and add the instructions to create a variable that track the number of values added (how many numbers the user imputed).

Complete the program calculating the average.

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

what causes the first cluster in a hierarchical clustering model?

Answered: 1 week ago