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

  Javascript for metric conversions

Write a javascript that will assist the user with metric conversions. Your program should allow the user to specify the names of the units as strings.

  Write a perl program

Write perl program which will run on my system and will start another perl program on another linux system. The main program should wait for linux perl program to complete its work and send the result to my main perl program.

  Matrix multiplication code with mpi

Matrix multiplication code with MPI. At the beginning of each of the programs, write names of group members in the comment line.

  Write and test code to create window with green background

Use Processing to write and test code that meets the requirements below. Create a 600x400 window with a green background (using 64 as the "amount" of green to draw).

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  Design application that would output payment coupons

Design the application that would output 12 payment coupons for each of the 15 apartments in each of the 20 buildings. Each coupon should contain the building number.

  What is java adapter class

What is Java adapter class.

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

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