Program that asks the user to enter a students name

Assignment Help Python Programming
Reference no: EM132250756

Write a program that asks the user to enter a students name and 8 numeric assignment scores (out of 100 for each assignment). The program should output the students name, a letter grade for each assignment score, and cumulative average for all the assignments. Please note, there are 12 students in the class so your program will need to be able to either accept data for 12 students or loop 12 times in order to process all the students in the class.

Write the following functions in the program:

calc_average - this function should accept 8 assignment scores as arguments and return the average of the scores

determine_grade - this function should accept an assignment score as an argument and return a letter grade for the score based on the following grading scale:

90-100 A

80-89 B

70-79 C

60-69 D

Below 60 F

Data for the program:

Lucy Miller 45 69 70 66 87 82 75 73

Frank Jones 90 93 87 84 91 93 90 88

Nancy Franklin 99 97 92 90 88 89 87 90

Judy Forsyth 72 86 59 69 72 78 80 82

Tony Spirit 87 83 86 90 79 76 80 88

Ruth Ames 66 69 72 61 69 73 71 70

John Smith 100 98 89 93 82 86 91 93

Andrew Barnes 78 77 75 83 80 87 80 78

Becky Stone 98 94 90 89 84 83 79 93

Marvin Decker 59 54 61 45 39 66 70 72

Steve Parker 71 78 73 62 66 72 64 70

Frank Harper 89 86 90 92 91 85 88 93

REMEMBER - to put your name on the lab in comments and put comments in your program for what the program is doing.

Verified Expert

The program is of python programming.In this program we store the records of students consisting of student name and marks in 8 subjects in list.The program runs the loop and calculate the average of marks and also determine the letter grade for each marks and print the output as student name, letter grade of each 8 marks of the student, and overall average marks.

Reference no: EM132250756

Questions Cloud

What has made them successful : What has made them successful? (this can be school teams, workplace teams, social teams, etc).
Calculate the expected dividend per share at the end of year : Amgen's equity cost of capital is 8%. Calculate the expected dividend per share at the end of year 1 and year 2, as well as the current share price of Amgen
Identify six sources of cost advantages for firms : Identify six sources of cost advantages for firms. Identify the most appropriate organizational structure for a firm pursuing a cost-leadership strategy.
Estimate a firm competitive advantages : Define competitive advantage and describe the two approaches used to estimate a firm's competitive advantages.
Program that asks the user to enter a students name : The program should output the students name, a letter grade for each assignment score, and cumulative average for all the assignments
Difference between felt empowerment and structural : What is the difference between felt empowerment and structural empowerment?
Uncertainty in a simple and dynamic environment : Which of the following approaches should an organization adopt for managing uncertainty in a simple and dynamic environment.
Definition and examples of master-servant relationship : What is a definition and examples of Master-Servant Relationship?
What can adam do to increase his power in the fraternity : When you think about both personal and positional sources of power discussed in the text, how might they apply in this scenario?

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