Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c++ language, and with only including iostream Library Note: Copy this section into a new file then save it. You will only submit this

using c++ language, and with only including iostream Library
image text in transcribed
Note: Copy this section into a new file then save it. You will only submit this section of the lab manual. Description: The exam committee in a school is in the process of collecting some statistics about the final exams. For that, they asked the instructors to provide the number of students who scored below and above the class average. They also asked for the minimum and the maximum scores. Problem: Given the marks of students and the class average, find the number of students scored below the average, the number of students scored above the average, the minimum, and the maximum scores. First, you need to construct the BST that represent the marks of students then find the required output. Input: First line consists of a single integer n represents the number of students in a class. Second line consists of n float numbers represent the marks of each student. Third line consists of a single float number f represents the class average. Output: Four integers below, above, min, and max that represent the number of students scored below the average, the number of students scored above the average, the minimum, and the maximum scores respectively. Example Run

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_2

Step: 3

blur-text-image_3

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

1. What might have led to the misinformation?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago