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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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