Compute the letter grade for a course by processing the data

Assignment Help Computer Engineering
Reference no: EM132212295

(Write Python Program)

This function returns a new list that includes negative numbers from a given list xs.

def negatives(xs):

result = []

for x in xs:

if x < 0: result.append(x)

return result

Write a recursive version of negatives.

(Write Python Program)

You are tasked to compute the letter grade for a course by processing the data file. Students in the course take 10 tests and the final exam. Each test is worth 10

points and the final exam 20 points. Two lowest test scores are eliminated from the course grade computation. Adding the eight highest test scores and the final exam will result in 100 points maximum. The letter grades are determined as follows:

"A" 95

"A-" 90

"B+" 87

"B" 84

"B-" 80

"C+" 77

"C" 74

"C-" 70

"D+" 67

"D" 64

"D-" 60

The content of a text file has this format

Student ID,Student Name,Final [20],Quiz 1 [10],Quiz 10 [10],Quiz 2 [10],Quiz 3 [10],Quiz 4 [10],Quiz 5 [10],Quiz 6 [10],Quiz 7 [10],Quiz 8 [10],Quiz 9 [10],Course Grade

jabbott,"Abbott, John",17.8,10,10,9.15,9.5,7.8,6.8,7.7,9.9,9.5,5,85.35

jbenson,"Benson, Jim",18.4,9,5,7.1,8.5,9.1,10,8,9.3,5.5,6,77.5

bsimpson,"Simpson, Benny",15.8,,7,8.65,,6.5,9,7.5,7,5,5.5,60.15

btalbott,"Talbott, Bruce",20.8,8.8,10,10,10,9.8,10,10,9.9,10,8.5,97

The first line is the header, describing the file content. Notice that the first line is displayed here on three lines because the line is too long to be displayed as a single line here. The course grades, like 85.35 and 77.5 are values computed by the Sakai system, which is irrelevant to how the actual course grade is evaluated.

When a student misses a test, no value is provided. If you look at the data for bsimpson, you will notice that he is missing two tests (Test 1 and Test 4). For missing scores, you use 0.Create an output file letter_grades.txt with the student id and his/her letter grade.

Reference no: EM132212295

Questions Cloud

Estimate the amount of cash received from customers : Estimate the amount of cash received from customers during 2016. Discuss the relation between net income and cash flow from operations for each of the three.
Create an example of the use of foreign exchange options : Create an example of the use of foreign exchange options to hedge an anticipated purchase of inventory using a cash flow hedge.
Identify any irregular items reported by avon rubber : Identify any irregular items reported by Avon Rubber. Is the reporting of these irregular items in Avon's income statement similar to reporting of these items.
What costs would be considered direct to manhattan office : Assuming the Manhattan office is the cost object, what costs would be considered direct to the Manhattan office? What costs would be indirect?
Compute the letter grade for a course by processing the data : You are tasked to compute the letter grade for a course by processing the data file. Students in the course take 10 tests and the final exam.
Advise alan about the likely success of his action : BULAW5914 Commercial Law - Federation university - Demonstrate your understanding of relevant laws - Develop your knowledge about the subject area
Review given problem of amanda : Amanda would like to organize BAL as either an LLC (taxed as a sole proprietorship) or a C corporation. In either form, the entity is expected to generate.
Print the number of odd inputs entered by the user : Write a Python program that read a sequence of positive integers and print the number of odd inputs entered by the user.
Write a python program that takes as input a month and year : Write a Python program that takes as input a month and year (as integer numbers) and determines the number of days in the month.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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