Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python Assume that a student inputs his/her lab marks for introduction to programming class. The marks are integers. When the student enters a

please use python
image text in transcribed
Assume that a student inputs his/her lab marks for introduction to programming class. The marks are integers. When the student enters a negative number, it means that he/she is done with the entering of his/her marks. In this exercise, we want you to find the average of the marks after the Prof removes the worst 3 lab marks. If the students enters less than 4 marks, then print the average of these entered marks. Otherwise, remove the three worst numbers and calculate the average of the remaining marks. For example, if a student enters 129845245689331 The program should output : 72 for the average of 98455689 and for 129810 it should print 55 for the average of 12 and 98. For the average value you can choose integer or float data type

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 Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

The Functions of Language Problems with Language

Answered: 1 week ago

Question

The Nature of Language

Answered: 1 week ago