Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a marks calculation in Python application to ask the user for a list of marks of students which should be entered using the keyboard.

write a marks calculation in Python
application to ask the user for a list of marks of students which should be entered
using the keyboard.
The numbers should be entered one at a time. You should devise a way for the user
to tell the application that all the numbers have been entered. Hint: use a loop.
The application should tell the user how many numbers they have entered and then
present a menu of choices as follows:
1. Print the mean of the numbers
2. Print the median of the numbers
3. Print the mode of the numbers
4. Go back and enter a NEW set of numbers
5. Exit the application
Part 2
Add more functionality as follows:
1. Allow only numbers to be added, give an error message to the user prompting
them to enter the value again.
2. Check that at least two numbers have been added before presenting the menu.
3. Find the skewness of the values in the list
Part 3
Add more functionality as follows:
1. Allow multiple numbers to be added as a string with the numbers separated by
commas (as well as individually). Hint: you will need to check whether a number entered
contains one or more commas.
2. Add another menu choice to enter more numbers (to the ones already entered).
3. Add the functionality to read the data file from the computer hard-drive
Comments in the Code
You are required to write comments within the code to explain it line by line.

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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions