Question: You are a software developer tasked with creating a simple repert card generator for a school. The report card will list each student's name and
You are a software developer tasked with creating a simple repert card generator for a school. The report card will list each student's name and grade, calculate the average grade, and determine the number of students who passed and failed. A passing grade is or above. Additionally, the report should list the names of the students who passed and those who failed.
Input format :
The first line of input consists of an integer representing the number of students.
For each student, prompt the user to enter:
Name of the student String
Grade of the student integer
Output format :
The first line of output prints the average grade of all students. Format to one decimal place.
The second and third line of output prints the number of students who passed and the number who failed respectively. The fourth and last line of output prints the names of the students who passed and the names of those who failed respectively.
Refer to the sample output for formatting specifications.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
