Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c++ language Part 2: Lab Tasks (10 points) Note: Copy this section into a new file then save it. You will only submit this

using c++ language
image text in transcribed
Part 2: Lab Tasks (10 points) 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

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago