C++ arrays help

Write a program that reads a file consisting of students’ test scores in the range 0–200. 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.

This is what I have to do but I don't know where to start
anyone help me please
I don't know where to start

1. Write a program that reads a file consisting of students’ test scores in the range 0–200.

2. 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.

3. Output the score ranges and the number of students.

Just do what you've been asked to do. You can get help on the steps, but it isn't quite clear what you need in terms of help.
Last edited on
I need like what type of code I need to start to
like what do I first type the few lines of starting code
Maybe something like
1
2
3
4
5
6
7
#include <vector>
#include <iostream>
#include <fstream>

int main ()
{
  std::ifstream ifs ("test.txt", std::ifstream::in);

?
thanks I think I can do it from here
Topic archived. No new replies allowed.