Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Python Expert

Due: Smartsite Thursday, 12/11, 11:55 p.m. File names: grading.py
• All prompts for input and all output must match my prompts/output. We use a program to grade your work and tiny differences can cause your work to be marked as a 0.
? If your work does happen to lose points you have 1 week from receiving your grade to
request a regrade and we will be happy to go back and fix any typos in your prompt/output. ? The best way to avoid being deducted points is to copy the prompt/unchanging portion of
the outputs into your code. Make sure to get the spaces as well.
• You must also submit a file called ReadMe.txt. The format is as follows
? student: first name last name, id
? student: first name last name, id
?
...
? notes: Any difficulties you had with the assignment and any comments you would like to make. Also if a program doesn''t work please let us know.
• All input in the examples has been underlined
• For this assignment you may NOT import any modules.
• Submit your work on Smartsite by uploading each file separately. Do not upload any folders or compressed files such as .rar, .tar, .targz, .zip etc.
• If you have any questions please post them to Piazza
• You may only import the os module
1. For this you will be creating a program called grading.py that takes a directory containing files that record how student''s performed on their assignments and from these files determines each students grades in addition to the course statistics.
1. You can only import the os module for this problem
1. If you import any other modules you will receive a 0 on this problem
2. Your program should ask the user for the directory that contains the homework files
3. Homework files
1. The name of a homework file is arbitrary
2. Each file is stored as csv and and has the following format
1. Percent Total, Percent contribution this assignment has to the student''s grade,
2. Max Points,Maximum number of points on the assignment,
3. ,,
4. Last Name,First Name,Grade
5. Student 1 Last Name, Student 1 First Name, Student 1''s Grade
6. Student 2 Last Name, Student 2 First Name, Student 2''s Grade
7. ...
3. Percent Total across all files will sum to 100
4. The names in the homework file are stored in arbitrary order
4. Your program should output the course statistics base on each student''s percentage in the class
1. The mean
2. Median
1. We will continue to use the same median as used in homeworks 3 and 4
3. Mode
1. There will always be a unique mode
4. Uncorrected sample standard deviation

N
1. Def: v 1 ~ )2
1.
i=1
2. N: The number of items
3. xi : The value of item I
4. x¯ : the mean
5. After displaying the course statistics your program should display each student''s percent grade in the class as well as their letter grade
1. Grades should be displayed in alphabetical order based on last name
1. If two people have the same last name then the ordering is based on their first names
2. For computing the letter grades
1. A''s >= 90%
2. B''s >= 80% and < 90%
3. C''s >= 70% and < 80%
4. D''s >= 60% and < 70%
5. F''s < 60%
6. You may not use global variables.
1. 10% will be deducted from your score for each global variable
7. You must use functions in this assignment. Your program must have at least the following functions. You free to have more than just these functions if you desire
1. mean
1. returns the mean of the given numbers
2. median
1. returns the middle value of the given numbers. We are
3. mode
1. returns the most commonly occurring number in the given numbers
4. std_dev
1. returns the uncorrected sample standard deviation of the given numbers
5. percent2Letter
1. given a percentage grade return the letter grade associated with it
6. read_homework
1. reads in 1 homework file and returns or updates the the students scores on the assignment, the number of points that assignment is worth, and the percent contribution that it makes to the students overall grades
7. display_statistics
1. This should display the course statistics
2. This function is partially completed for you. Please make sure to use the provided format strings so that your output matches mine
8. display_grades
1. This should display the students grades in alphabetical order.
2. This function is partially completed for you. Please make sure to use the provided format strings so that your output matches mine.

Example:
• Tests/Test1 only contains HW1.csv
• HW1.csv contains the following:
Percent Total,100,
Max Points,50, ,,
Last Name,First Name,Grade
Smith,John,50 Fruit,Apple,43 Dog,Lab,25
Cat,Long,36 Smith,Will,13 Veg,Carrot,50
Please enter the name of the directory
containing the homeworks: Mean | Median | Mode |
72.33 | 86.00 | 100.00 Tests/Test1
Standard Deviation | 26.97
Last Name | First Name | Percent | Letter
Cat | Long | 72.00 | C
Dog | Lab | 50.00 | F
Fruit | Apple | 86.00 | B
Smith | John | 100.00 | A
Smith | Will | 26.00 | F
Veg | Carrot | 100.00 | A

Python, Programming

  • Category:- Python
  • Reference No.:- M91008124

Have any Question?


Related Questions in Python

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

Architecture and system integrationcase study queensland

Architecture and System Integration Case Study: Queensland Health - eHealth Investment Strategy After evaluating various platforms, Queensland Health finally decided to adopt a Service Oriented Architecture (SOA) for its ...

Sieve of eratosthenes in pythonthe goal is to find all the

Sieve of Eratosthenes (in Python) The goal is to find all the prime numbers less than or equal to some natural number maxn. We have a list that tells us if any of the numbers 0..maxn are "marked". It can be an array of b ...

Question a software company sells a package that retails

Question : A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program usi ...

Question write a python program with a graphical user

Question: Write a python program with a graphical user interface that will allow a user to create a custom pizza which they wish to order. At minimum, the user should be able to choose the size of the pizza, the type of ...

Python programming assignment -you first need an abstract

Python Programming Assignment - You first need an abstract base class, called, Account which has the following attributes and methods: accountID: This attribute holds the ID assigned the account , if not provided set to ...

In this programming assignment you will write a client

In this programming assignment, you will write a client pingprogram in Python. Your client will send a simple ping message to a server, receive a correspondingpong message back from the server, and determine the delay be ...

Part i the assignment filesone of the most important

Part I: The Assignment Files One of the most important outcomes of this assignment is that you understand the importance of testing. This assignment will follow an iterative development cycle. That means you will write a ...

Foundations of programming assignment - feduni bankingthis

Foundations of Programming Assignment - FedUni Banking This assignment will test your skills in designing and programming applications to specification. Assignment Overview - You are tasked with creating an application t ...

Below zero - ice cream storethe local ice-cream store needs

Below Zero - ice cream store The local ice-cream store needs a new ordering system to improve customer service by streamlining the ordering process. The manager of the store has found that many orders are incorrect and s ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As