Question: Write a Python program to compute CGPA grade of a student . The program asks user to enter student number , student name and student
Write a Python program to compute CGPA grade of a student . The program asks user to enter student number , student name and student type . The student type is is either for graduate or 'U for undergraduate . If the user enters any other value for the student type , the program will display an error message "Invalid student type . Try again !" and allows user to enter the student type again The program then asks user to enter the GPA of the student if the student type is ' G; enter the GPA and the credit hours if the student type is ' U'. The CGPA of a graduate student is computed as : GPA 4 The CGPA of an undergraduate student is computed as : GPA * credit hours Finally , define and call a function displayCGPA to print the following program output : Student Number Student Name : CGPA : Note : Write code in the online text area below . Use of Python Idle or any other interpreter is not allowed .Write comments .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
