Write program to read file having student'' test scores

Assignment Help Programming Languages
Reference no: EM1358571

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains. You may also assume that the number of grades will be less than 100.) It should then determine the number of students having scores in each of the following ranges: 0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, and 175-200. Output the score ranges and the number of students.
Given the following file input:

26 76 89 150 135 200 76 12 100 150 28 178 189 167 200 175 150 87 99 129 149 176 200 87 35 157 189

The output should be the following:

[0 - 24]: 1
[25 - 49]: 2
[50 - 74]: 0
[75 - 99]: 6
[100 - 124]: 1
[125 - 149]: 3
[150 - 174]: 5
[175 - 199]: 8

Reference no: EM1358571

Questions Cloud

Find out the probability level test : Find out the probability of a 5%-level test rejecting the null hypothesis when the true mean impurity concentration is 2.10%.
Irrational or maladaptive assumptions : When you watch your favorite sitcom on television,do you see any irrational/maladaptive assumptions or attitudes that the characters display?
Compute the incremental net income of the investment : The Best Manufacturing Corporation is planning a new investment. Financial projections for the investment are tabulated below. Cash flows are in $ thousands, and corporate tax rate is 34%.
Product versus period costs-fixed versus variable costs : Write a memo to your partner covering all of the following: Write a description of the difference between product and period costs and examples of each. Explain how the financial results of a business would be reported differently if costs were not..
Write program to read file having student'' test scores : Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.
What was the magnitude of force : A motor boat haeds due east at 5 m/s acorss a river that flows toward the south at 5 m/s. If the river is 125m wide, how longs does it take the boat to cross the river.
Human growth and socialization : What is the relationship between human development & socialization as it relates to anti -social behavior. How does it affect anti- social behavior.
Entry to record the purchase : Fison Corporation purchased 15,000 shares of its $2 par common stock at a cost of $12 each share on April 30, 2006. The stock was originally issued at $10 each share.
Proven ways to increase share value : Describes several ways to increase the value of an organization. Which of these might be applicable to an organization and why? Please provide a reference.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to fill 0s and 1s into tictactoe board

Write a program which randomly fills in 0s and 1s into TicTacToe board, prints board.

  Procedure to draw shape of choice

Write a program with a suitable procedure to draw shape of your choice. Your program must then call the procedure 10 times to draw the shape.

  Create a multi-threaded competition

Create a multi-threaded competition

  Write pseudocode

Write pseudocode that represents the abstract functions of the enqueue and dequeue operations. Define and explain any supplementary information needed by your pseudocode.

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Deisgn class contains data fields for height and surfacearea

Deisgn a class named Rectangle that contains data fields for height width and surfaceArea and a method named computeSurfaceArea?

  Create application which permits user to input a price

Create an application which allows a user to input a price until suiatble sentinel value is entered. Output is a price of each item on each day,one through seven.

  Program to track which user is logged onto which computer

Write a computer program that could be used to track, by lab, which user is logged onto which computer.

  Program to keep track of the seat availability of flight

A small airline company needs a program to keep track of the seat availability of its flights. Design the structure type FLIGHT to store a four-digit flight number.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Write a script to declares and sets variable

Write a script that declares and sets a variable thats equal to the total outstanding balance due. If that balance due is greater than $10,000.00.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd