Question
sid = input(Enter student ID : ) name = input(Enter student's name : ) sem = int(input(Enter semesters passed in the university : )) score
sid = input("Enter student ID : ")
name = input("Enter student's name : ")
sem = int(input("Enter semesters passed in the university : "))
score = float(input("Enter programming score (out of 50%) : "))
if(score<0 or score>50):
print("Invalid score")
exit()
score*=2
grade = ''
prog = 'No programs available'
if(score>=90):
grade = 'A'
elif(score>=80):
grade = 'B'
elif(score>=70):
grade = 'C'
elif(score>=60):
grade = 'D'
else:
grade = 'F'
if sem == 3 and grade in 'AB':
prog = 'Soaring The Eagles'
elif sem == 2 and grade in 'CD':
prog = 'Guiding The Cubs'
elif sem == 1 and grade == 'F':
prog = 'Coaching The Pandas'
print("Student ID :",sid)
print("Name :",name)
print("Semesters passed :",sem)
print("Score (out of 100) :",score)
print("Letter grade :",grade)
print("Relevant improvement program :",prog)
Create a pseudocode based on this Python coding
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started