A University wants to make a basic graphical display to show how many people received
different grades for a piece of work on a module (histogram). You are required to write a
program in C++ that achieves this.
The program consists of the following three tasks:
Task1 The program should allow the tutor to enter the marks which the students were
awarded until the tutor enters a mark exceeding the value of 100. Marks belong to
the following grade categories: 0-29, 30-39, 40-69, 70-100.

Each plus sign (+)
represents a student who achieved a mark in an appropriate category. At the end,
the program should display the total number of students. The program should work
with any number of students for whom marks were entered.
An example of the output is shown below. This example shows the distribution of
marks for 20 students per grade category, called a histogram:
0-29 +++
30-39 +++++
40-69 ++++++++
70-100 ++++
20 students in total

• As the tutor enters each mark, a counter should count the number of students’
marks which have been entered per student.
Use four categories for mark range: 0-29, 30-39, 40-69, 70-100.

• Make sure the display is neatly formatted as in the example above.

• Your program should make use of ‘loops’ for the display of each mark category.

Remember this is your assignment and you didn't ask any questions or tell us where you are stuck. Do that so everyone can see where you need help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.