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

  Construct an e-r diagram for the registrars office in crows

The enrollment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modeled.

  Show the number of words in each sentence

Show the number of words in each sentence that contain a stretch of non-z characters with exactly 2 vowels.

  Compute the tax and lip on a restaurant bill

Your project will be evaluated bated on the following criteria. Project works according to specifications. Output in accurate Logic is efficient.

  Define cognitive aid and their application in systems design

Define cognitive aids and their applications in systems design. Enumerate and explain briefly any four principles affecting flexibility principle. Differentiate between Multi-modal system and multimedia system.

  Plot a graph where the horizontal axis presents the number

Plot a graph where the horizontal axis presents the number m, and the vertical axis presents the number of iterations it takes to end up with 1.

  Discuss how net neutrality will affect data networks

Base on your article review and the assigned reading, discuss how net neutrality will affect data networks and the availability of information to businesses.

  A full description of the new system a description of its

begin working on your presentation.submit an outline of the presentationthat includes the followinga full description

  Write a program that asks the user for a password

Write a program that asks the user for a password and verifies that it meets the stated criteria.

  An authentication policy for a hypothetical organization

Write an authentication policy for a hypothetical organization. This policy should address the use of various authentication schemes for different assets.

  What repetition control structure is used in java

How may easy to read or highly documented code become a security risk?

  Determine number of memory accesses necessary using marie

First, determine the number of memory accesses necessary using MARIE and the two registers for holding memory data values (AC and MBR).

  Create a simple system to read merge purge eclipse data

"Create a simple system to read, merge, purge, sort, search, and write eclipse data with error checking and providing fast lookup by catalog number."

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