COMP 150 Assignment 4 40 points General Directions Important: Since this is a graded assignment, all work must be your own. No collaboration is allowed. If you have questions, please see me. Include...

i hate python



COMP 150 Assignment 4 40 points General Directions Important: Since this is a graded assignment, all work must be your own. No collaboration is allowed. If you have questions, please see me. Include the fol- lowing pledge as part your header comment block in your source code #I affirm that my work upholds the highest standards of honesty and #academic integrity at Wittenberg and that I have neither given nor #received unauthorized assistance. #________________________________________ Rubric This assignment will be graded on 1. Correctness 2. Conformity to requirements of the assignment - including format of your output. 3. Effective use of comments; layout of code 4. Effective use of the Python language; quality and design of code; There will be a 10% penalty assessed against your grade for each day late. Assignment Write a Python program to compute your current percentage average and course letter grade at a point in time during the semester. We have labs, programs, and exams as the components of your grade. Assume there will be 10 labs at 10 points each, 10 programs at 40 points each and 4 exams at 100,100,100,200(final) 1 points. Assume 90s 80s 70s etc for letter grades A B C etc. Here is a starter code and some sample output: # assignment4.py # Compute Course Grade Using Functions and Lists # Function getLabGrade def getLabGrades(numberLabGrades,numberLabTotal): labs = numberLabTotal*[0] # initialize list to zeros # loop to input lab grades goes here return labs # Function getProgramGrades goes here # Function getExamGrades goes here # Function getCurrentAverage goes here # Function getCurrentGrade goes here def main(): # Enter lab grades numLabGrades = eval(input("Enter number of lab grades:")) numLabsTotal = eval(input("Enter total number of labs:")) labs = getLabGrades(numLabGrades,numLabsTotal) print("labs are:",labs) # Enter program grades # Enter exam grades # Compute current average and current letter grade 2 main() Enter number of lab grades:3 Enter total number of labs:10 (NOTE: PARTIAL sample output) Enter lab 1 grade:10 Enter lab 2 grade:8 Enter lab 3 grade:9 labs are: [10, 8, 9, 0, 0, 0, 0, 0, 0, 0] Code Outline and Output: Use the code structure above and match the in- put/output structure of the partial sample output. Notes & Requirements 1. Source code for a program must begin with the standard header comment block which lists your name, the file name, the date and a brief description of what your program does. Don’t’ forget to include the pledge 2. Your output must exactly match the sample run, character for character, space for space, line for line. Using int() round off figures to two digits. 3. Test your program well. First work out by hand your own test data. Run multiple test cases to make sure the program works. 4. Code which does not run will not be accepted for grading. 5. Submit your source code file (call it lastname assignment4.py) to moodle. I will run your code to see that it works. 6. There is a 10% grading penalty for every day late. once 3 days late the assignment will not be accepted ( 0 points). 3
Oct 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here