Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write python program that define two functions with proper function names: Function 1 : Prompt the user to enter the number of students. Ensure that
write python program that define two functions with proper function names: Function : Prompt the user to enter the number of students. Ensure that the entered value is a validnumber at least students before it return number of students to the caller. In case an invalid numberis entered, keep asking until a valid number is provided. Function : Calculate and display the percentage of A grades for a student based on the number of 'A'scompared to the total number of grades. Main function: ask for number of students. Then for each student, prompt the user to enter their grade.Valid grades are ABCD and F only regardless of letter case. Your code should continue askingfor grades until a nonvalid grade is given. Then it Identifies and displays "Outstanding student" for thosestudents who have more than A grades based on their total grades. Invoke proper user definedfunctions.For functions and above, provide at least three test cases including expected results to demonstrate thefunctions functionality. Also add main purpose, argument and return type as comments under function header.
Without usin
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