Determine the number of students having scores

Assignment Help Basic Computer Science
Reference no: EM13322261

Write a program that reads a file ("scores.txt") consisting of students' test scores in the range of 0-200. These scores should be loaded into a one-dimensional array. Then the program should determine the number of students having scores in each of the following categories:

0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, 175-200.

Output the score ranges and number of students. Run your program with the following input data that is stored (one number per line) in "scores.txt": 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 159, 176, 200, 87, 35, 157, 189

Output Format:

Score Range Number of Students

0-24 1

25-49 2

50-74 0

75-99 6

Etc.

Reference no: EM13322261

Questions Cloud

Find min loads that will be applied to yield a fatigue life : Consider a 2014-T6 aluminum alloy the S-N behavior. A cylindrical rod of diameter 13.2 mm fabricated from this alloy is subjected to repeated tension-compression loading along its axis.
Calculate the percentage of completion : Job costing information is used? a. for internal financial reporting b. to enhance public relations c. to determine target customers d. to calculate the percentage of completion
Write a function named daycount() that accepts a month : Write a function named daycount() that accepts a month, day, and year as its input arguments.
Determine the magnitude of the induced emf : A coil has 480 turns and self-inductance 3.40 mH. At t = 0.0150 s, what is the magnitude of the induced emf
Determine the number of students having scores : Write a program that reads a file ("scores.txt") consisting of students' test scores in the range of 0-200. These scores should be loaded into a one-dimensional array. Then the program should determine the number of students having scores in each ..
How many months will take to have the clay settle 3 inches : A 10 ft layer of normally consolidated saturated clay is found at depth of 20 ft beneath a formation of partially saturated sandy silt with unit weight of 115 lb/ft cubed. Void ratio of the clay is 1.5 and specific gravity is 2.6.
Issue of the new bonds and the refunding of the bonds : Prepare the journal entries necessary to record issue of the new bonds and the refunding of the bonds.
What is the ph at the points in the titration : Calculate the pH at the points in the titration of 40.00 mL of 0.425 M NH3 for the reaction below. NH3(aq) + HNO3 ? NH4+(aq) + NO3?(aq) For NH3, Kb = 1.8x10-5.
Determine the energy dissipated in the jump : A hydraulic jump forms in a horizontal trapezoidal channel. The base width is 4m and the side slopes are 45o. The depths upstream and downstream of the jump are 1m and 3m.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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