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
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