Question: Write a class student() that gets a students name, student id and mark and computes the grade. The program should ask the user to choose
Write a class student() that gets a students name, student id and mark and computes the grade. The program should ask the user to choose between writing and reading data.
In case of writing data: Add another students detail to the list. In case of Reading Data: Display the entire list.
The Grading Scale is, 94 Ex: LAB ACTIVITY 11.11.1: LAB: Grade Calculator 0 / 5 main.py Load default template... class student(): def grade(self,mark): '''Write code to calculate the grade''' if __name__ == '__main__': '''Write code to get user inputs and print the desired output''' What do you wish to do? Read data(r) or write data(w): w Enter student name,student id,mark: x,000,90 What do you wish to do? Read data(r) or write data(w): w Enter student name,student id,mark: xx,111,40 What do you wish to do? Read data(r) or write data(w): r x's grade is A xx's grade is D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
