Answered step by step
Verified Expert Solution
Link Copied!

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 1: Prompt the user to enter the number of students. Ensure that the entered value is a validnumber (at least 2 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 2: 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 'A','B','C','D', and 'F' only regardless of letter case. Your code should continue askingfor grades until a non-valid grade is given. Then it Identifies and displays "Outstanding student" for thosestudents who have more than 50%'A' grades based on their total grades. Invoke proper user definedfunctions.For functions 1 and 2 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions