Takes a directory containing files that record

Assignment Help Python Programming
Reference no: EM13550873

File names: grading.py

• All prompts for input and all output must match my prompts/output.

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
• 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

              1. Def: 2058_Directory containing files.png

              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

Example:

Please enter the name of the directory containing the homeworks: Tests/Test1

125_Directory containing files1.png

Reference no: EM13550873

Questions Cloud

Determine what force is required to hold it completely : A ball has a diameter of 3.77 cm and average density of 0.0842 g/cm3. What force is required to hold it completely submerged under water
What is the approximate energy required to raise : What is the approximate energy required to raise the temperature of 9 L of air by 300 °C? The volume is held constant. (Assume air almost entirely consists of nitrogen, oxygen, and argon, and that it is initially at 273 K.
Obtain what is the final temperature of the mixture : A 60-g ice cube at 0°C is placed in 727 g of water at 28°C. What is the final temperature of the mixture
Estimate what power is deliever by the helicopter : A helicopter lifts a stretcher with a 74 kg accident victim in it out of a canyon by applying a vertical force on the stretcher. what power is deliever by the helicopter
Takes a directory containing files that record : Create 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.
Quantity of liquid water comes into equilibrium with the air : A quantity of liquid water comes into equilibrium with the air in a closed container, without completely evaporating, at a temperature of 25.0 °C. How many grams of water vapor does 9 liters of the air contain in this situation? The vapor pressure..
Explain how is the solution adjusted to the ph : The ananlysis procedure in this experiment requires that the titration be conducted at a pH = 10. How is the solution adjusted to this pH
What is the variation of pressure in the sound wave : A microphone has an area of 3.0cm^2. It receives during a 6.00s time period a sound energy of 1.0x10-11J. what is the variation of pressure in the sound wave if the speed of sound is 343m/s
What would you recommend mark do and why : What would you recommend Mark do and why?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd