Assignment 1 A python Application to Calculate your course grade Write a program that asks the user to enter the following information for csis110: • full name, test1 score, test2 score, homework score, • Group presentation score Read all the above data and save each data in its own variable with meaningful variable names. Calculate the class average and the letter grade based on the course assessment: Tests 1 35% Test2 35% Homework 15% Group Presentation 15% Below is a formula to calculate a students final grade based on above assessment:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

PYTHON LANGUAGE

 

Write a program that asks the user to enter the following information for csis1 10:
full name,
test1 score,
test2 score,
●
Assignment 1
A python Application to Calculate your course grade
●
homework score,
Group presentation score
Read all the above data and save each data in its own variable with meaningful variable names.
Calculate the class average and the letter grade based on the course assessment:
Tests 1
35%
Test2
35%
Homework 15%
Group Presentation
15%
Below is a formula to calculate a students final grade based on above assessment:
test1 *0.35 + test2 * 0.35 + homework * 0.15 + groupPresentation * 0.15
Finally print to the screen a) All data read, b) the calculated class numeric grade, c) the letter
grade and d) if the student passed or not (a passing grade is 70 or higher)
The letter grade for the corresponding course numeric grade is:
A: 90-100
B: 80-89
C: 70-79
D: 60-69
F: 0-59
Transcribed Image Text:Write a program that asks the user to enter the following information for csis1 10: full name, test1 score, test2 score, ● Assignment 1 A python Application to Calculate your course grade ● homework score, Group presentation score Read all the above data and save each data in its own variable with meaningful variable names. Calculate the class average and the letter grade based on the course assessment: Tests 1 35% Test2 35% Homework 15% Group Presentation 15% Below is a formula to calculate a students final grade based on above assessment: test1 *0.35 + test2 * 0.35 + homework * 0.15 + groupPresentation * 0.15 Finally print to the screen a) All data read, b) the calculated class numeric grade, c) the letter grade and d) if the student passed or not (a passing grade is 70 or higher) The letter grade for the corresponding course numeric grade is: A: 90-100 B: 80-89 C: 70-79 D: 60-69 F: 0-59
Below are 2 sample example of running the program.
A sample run of the program :
What is your name: Nadia Diaa
What is your test1 score: 75
What is your test2 score: 93
What is your homework score: 90
What is your group presentation score: 85
Output Result:
Name
Nadia Diaa
Test1 75
Test2 93
Homework: 90
Group Presentation: 85
Course Numeric Grade: 85
Course Letter Grade: B
Another sample run of the program :
What is your name: Jeff Khoury
What is your testl score: 75
What is your test2 score: 60
What is your homework score: 65
What is your group presentation score: 75
Output Result:
Name : Jeff Khoury
Test1 75
Test2 60
Homework: 65
Group Presentation: 75
Course Numeric Grade: 68
Course Letter Grade: D
Unfortunately you did not pass the class
Transcribed Image Text:Below are 2 sample example of running the program. A sample run of the program : What is your name: Nadia Diaa What is your test1 score: 75 What is your test2 score: 93 What is your homework score: 90 What is your group presentation score: 85 Output Result: Name Nadia Diaa Test1 75 Test2 93 Homework: 90 Group Presentation: 85 Course Numeric Grade: 85 Course Letter Grade: B Another sample run of the program : What is your name: Jeff Khoury What is your testl score: 75 What is your test2 score: 60 What is your homework score: 65 What is your group presentation score: 75 Output Result: Name : Jeff Khoury Test1 75 Test2 60 Homework: 65 Group Presentation: 75 Course Numeric Grade: 68 Course Letter Grade: D Unfortunately you did not pass the class
Expert Solution
Step 1

Python Program:

# Ask the user to enter the student information
name = input("What is your name: ")
test1 = int(input("What is your test1 score: "))
test2 = int(input("What is your test2 score: "))
homework = int(input("What is your homework score: "))
groupPresentation = int(input("What is your group presentation score: "))

# Calculating the final grade
final_grade = test1*0.35 + test2*0.35 + homework*0.15 + groupPresentation*0.15

# Display all data
print("\nName: ", name)
print("Test1: ", test1)
print("Test2: ", test2)
print("Homework: ", homework)
print("Group Presentation: ", groupPresentation)
print("Course Numeric Grade: ", int(final_grade))

# Calculating the class numeric grade and letter grade
if final_grade>=90 and final_grade<=100:
    print("Course Letter Grade: A")
elif final_grade>=80 and final_grade<=89:
    print("Course Letter Grade: B")
elif final_grade>=70 and final_grade<=79:
    print("Course Letter Grade: C")
elif final_grade>=60 and final_grade<=69:
    print("Course Letter Grade: D")
    print("Unfortunately you did not pass the class")
elif final_grade>=0 and final_grade<=59:
    print("Course Letter Grade: F")
    print("Unfortunately you did not pass the class")
else:
    print("Invalid Input!")

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY