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

  Work with classes as reusable code

Objective: Work with classes as reusable code and random numbers. Instructions: A slot machine is a device that the user inserts money into and then pulls a lever (or presses a button).

  Factors finding whether something is politically feasible

Describe political feasibility. What factors go into determining whether something is politically feasible in an organization? Answers may include whether a sponsor exists

  Explain what a buffer overflow is how it can be used

Explain what a buffer overflow is, how it can be used by an attacker, and how to prevent such as an attack.

  Write a program that asks user to input grade of student

Write a program that asks the user to input the grade of the student. If the grade is equal or greater than 60, the program prints the word "pass", otherwise it prints the word "fail".

  Envision software architecture aiding you as a software arc

How do you envision software architecture aiding you as a software architect in addressing requirements such as performance and security?

  How many times new flash drive is bigger than old

The program asks the speed v in km/h and transforms it to m/s. Please solve one program ...C , Java it doesnt matter

  We are interrupted or disintegrated

Research is compelling that it takes us approximately 4 to minutes return to our work with the same level of through processes whenever we are interrupted or disintegrated. Is it possible to information is fairly constant?

  First instruction executed if we start machine with counter

Suppose the memory cells at addresses 00 through 02 contain the following bit patterns. What would be the first instruction executed if we start the machine with its program counter containing 00?

  How pms allot preservation treatment to candidate project

1. Does PMS allot preservation treatment to candidate project? 2. If answer to question 1 is Yes or Under Development, which groups of treatments does PMS cover?

  Assume that you have the following context free grammar

What string came from this sequence of derivations? (It should be obvious whether this is a left derivation or a right derivation.)

  Write the implementataion of my animal class

Below is the header for my animal class. I need to create a derived class based on my animal class.

  Decision tables and dependency diagrams

Decision Tables and Dependency Diagrams

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