Answered step by step
Verified Expert Solution
Link Copied!

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 50 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.
image text in transcribed

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

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions