Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

python code

Rating
-
Sold
-
Pages
1
Uploaded on
30-06-2023
Written in
2022/2023

python code

Institution
Course

Content preview

#MARIAM ALDAIHANI
# program that asks users to enter name and scores for the tests
# asking for user input
print('What is your name:')
Fullname=input()
print('what is your test1 score:')
test1=int(input())
print('What is your test2 score:')
test2=int(input())
print('What is your homework score')
homework=int(input())
print('What is your group presentation score:')
groupPresentation=int(input())
#computation of the total score
totalscore=int(test1*0.35+test2*0.35+homework*0.15+groupPresentation*0.15)
#displaying the information,score and grade
print("your name is:" +Fullname)
print("Test1:", test1)
print("Test2:", test2)
print("Homework:", homework)
print("Group presentation:",groupPresentation)
print("Course score:",totalscore)
#if statement that determines the grade
if totalscore>=90 and totalscore<=100:
print("Course grade: A")
elif totalscore>=80 and totalscore<90:
print("Course grade: B")
elif totalscore>=70 and totalscore<80:
print("Course grade: C")
elif totalscore>=60 and totalscore<70:
print("Course grade: D")
elif totalscore>=0 and totalscore<60:
print("Course grade: F")
#if else statement to notify student if he passed or failed
if totalscore >=70 and totalscore<=100:
print("Congraturations you passed this class!!!!")
else:
print("So sad, You failed this class")

Written for

Course

Document information

Uploaded on
June 30, 2023
Number of pages
1
Written in
2022/2023
Type
OTHER
Person
Unknown

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
smartqualitynotes

Get to know the seller

Seller avatar
smartqualitynotes California state university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
8 year
Number of followers
0
Documents
27
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions