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 program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

  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.

  Program to calculate amount person would earn over a period

Write a program that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day.

  Design a benefits election system

Individual project for this course is in form of Service Request from Huffman Trucking. It is essential for student to access Service Request: SR-ht-001. Design a Benefits Election System.

  Write a program to compute the probability

Write a program (or a peudocode) to compute the probability that at least 2 people have the same birthday, given there are 2, 3, 4,....,60 people in the room.

  Explaining box properties available in css

Browse the Web and choose a site that could benefit from box properties available in CSS. Make a screen capture of the page and indicate how you would change border and spacing properties.

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

  Wilkerson-irwin algorithm to minimize mean tardiness

Write a program to implement the Wilkerson-Irwin algorithm to minimize mean tardiness.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

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