Ask Question, Ask an Expert


Ask Programming Language Expert

Q1. Pupils' heights

The health visitor at a school is going to evaluate the heights of all pupils. For each class she makes a statistics giving the number of pupils of each height and the average height.

Create a C++ program which assists the health visitor making the statistics.
ex:  In a class with 20 pupils the heights of the individual pupils, in centimetres, are:

175, 167, 160, 164, 183, 187, 188, 179, 176, 175,
169, 175, 176, 178, 165, 160, 173, 165, 187, 178

The program must read in all the numbers and make a table like this:

Height number of pupils

160  2
164  1
165  2
167  1
...  ...
...  ...
188 1 average height 174.0 Maximum Number of Students lies between 173 and 179 
Q2. Find the nth smallest number in an unsorted array of numbers. prepare a C++ Program.

Hint [14 are 3rd smallest number is this array {25, 14, 10, 5, 50, 30} Hint: First sort the array
Q3. prepare a C++ program that finds square root of number?
Q4. Set theory: prepare C++ programs that declare/initialize two integer arrays A and B of size 10. You program takes input values from user. Initialize an integer array U of size 50 with first fifty positive integers. Your program provides following functionality to user.

Press N or n for A intersection B
Press U or u for A Union B
Press / for A / B
Press \ for B / A
Press A or a for A’s Complement
Press B or b for B’s Complement
Press D to prove De Morgan’s Law

You program continues till user desire to quit. Output of your programs must be in set representations that is, A union B = {2, 4, 34, 20} OR A’s Complement = {45, 34, 22}. In case of De Morgan’s Law compute intersection or Union first and then apply complement.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91360

Have any Question? 

Related Questions in Programming Language

Assignmentquestion 1consider the following class the

Assignment Question 1 Consider the following class. The purpose of each block of code within the class is written in comments within the code. But the following class contains a number of errors. Errors can occur at comp ...

Assignmentin this assignment you will implement a

Assignment In this assignment, you will implement a simplified gradebook. Your application should: Ask for a student's name. Ask for how many letter grades will be inputted. After all of the valid letter grades are enter ...

Assignmentindent code and insert comments to document your

Assignment Indent code and insert comments to document your program. Program must be implemented and run as instructed. Source file and executable are placed in a folder. Define the class with the name BankAccount to sto ...

Project on grammarsnbspcourseist 230cmpsc

PROJECT ON GRAMMARS   Course: IST 230/CMPSC 360   Deadline: see the calendar in Canvas for the deadline   Objective: To acquire a comprehensive understanding of the application of grammars and formal language theory to c ...

Assignmentwrite a narrative describing the objective of the

Assignment Write a narrative describing the objective of the program, and what each routine will do, including the reason for and purpose of the array(s), in addition to the selection statement and use of iterations Expl ...

Write a gui application that prints out hello in either

Write a GUI application that prints out "Hello!" in either: English, French, or Spanish. When the user selects another language, the greeting shown in the greeting area should change. Your GUI should look like the interf ...

Assignment1 you are a manager who is employed by a game

Assignment 1. You are a manager who is employed by a game production company. Your team is responsible for coding one of the game modules. You have two newly hired programmers working for you who believe that the followi ...

Assignmenteagle airlines has contracted you to implement a

Assignment Eagle Airlines has contracted you to implement a basic airline ticketing system for passengers. Your program will allow the application's user to enter the information associated with each passenger. The ticke ...

First write a program that reads students names followed by

First... Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highe ...

The program will store the realty listings data as a

The program will store the realty listings data as a dynamically allocated LINKED LIST, instead of an array of records. The program will allow the realtors to both maintain and use the listings data. 1. Again, begin the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro