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

  Which value border-collapse will give each cell of a table

Which value of border-collapse will give each cell of a table a border that can be specified independently of adjacent cells

  Decimal digit in bcd

Design a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit.

  Random numbers

Create a program that will generate a list of 200 random numbers (ranging from 1- 1000) and determine the medium, mode, and average of the list of numbers. Have the program display the original list and then display the list in ascending and desce..

  Shared assets do not bring competitive advantage

Why does Hansen recommend that competition among members should not be issue because shared assets do not bring competitive advantage? Describe.

  What strategic role can information play in business process

What strategic role can Information play in business process re-engineering

  Define a method hello

Define a method hello(name) which takes in a string representing a name and prints out "Hello, " followed by the name.

  Delete an element from the dictionary

Create a dictionary (Using the list of words in the attached file)

  Connection between business and information system functions

Give a brief overview/answer of each: Involving individuals with various perspectives in system analysis and design activities and Connection between business and information system functions.

  Create the digital building block adder in verilog

Create the digital building block adder in Verilog. Give baseline design (of minimum cost) and improved design (of higher performance). Compile, simulate, and synthesis your Verilog codes.

  Given a set of integer numbers

Given a set of integer numbers as int A[ ] = { 12, 6, 51, 4, 3, 7, 19, 8, 0, 21}, please write down the divide and conquer procedure of quick sort (step by step), include all left and right positions adjustment, and overwriting.

  Determine the mix of cargo

The load master for a freighter wants to determine the mix of cargo to be carried on the next trip. The ship's volume limit for cargo is 100,000 cubic meters, and its weight capacity is 2,310 tons.

  Write a declaration for an enumerated data type

A pet store sells dogs, cats, birds, and hamsters. Write a declaration for an enumerated data type that can represent the types of pets the store sells.

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