Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python 1. The purpose of the getFile() function is to prompt the user for the filename which contains the grades and return it to

In python
1. The purpose of the getFile() function is to prompt the user for the filename which contains the grades and return it to main().
2. The purpose of the getData() function is to read the file grade data into a list and return the list to main(). This function should receive the filename as an argument.
3. The purpose of the calculateMean() function is to receive the grade list as an argument and using the above mathematical formula, calculate and return the mean of the grades.
4. The purpose of the calculateSD() function is to receive the grade list as an argument along with the mean and using the above mathematical formula, calculate and return the standard deviation.
5. Since all the relevant data has been calculated, the program needs to call the curveGrades() function and apply the following logic while assigning a letter grade to grade. You need to pass in as arguments the grade list, mean and standard deviation.
Grade curve logic:
Formula
Grade
grade ? m + 1.5(sd)
assign a letter grade of
A
m + 0.5(sd) ? grade
assign a letter grade of
B
m 0.5(sd) ? grade
assign a letter grade of
C
m 1.5(sd) ? grade
assign a letter grade of
D
grade
assign a letter grade of
F
6. All variables are to be local.
7. The only math function you may use is sqrt(). No statistical functions are allowed.
8. The displayTitles() function should print the first five (5) lines.
Note the standard deviation should print out using an accuracy of four (4) places past the decimal point.
9. The output should be in consistent columns of size 2, 7 and 3.
image text in transcribed

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago