Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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