Ideas for a C++ project?

I am supposed to write a code in C++ as a project for school, however I have no idea what I should do. I need to have in the code at least:

3 functions
1 array
1 string
2 arithmetic operators
A user input

I have tried to make a calendar, however it didn't work out so well...
ugh... I can think of some good ones, but Im having trouble trying to include 2 arithmetic operators, Im guessing thats bools right(True, false).

Edit:

What about. You have an array with a bunch of numbers in them.

Function 1: Returns biggest number in the array.
Function 2: Returns smallest number in the array.
Function 3: Returns the average.

Create 2 bools. The user can input 1 0, depending if e wants the smallest or the biggest number to be outputted. The second bool you can use for the loop, to enter or to exit it. You can use string to ask for the users name.

Last edited on
A gradebook is a common project for such specifications.

1
2
3
4
5
6
7
8
9
10
(1) Prompt for the name of the Gradebook
(2) Input grade book name (A user input; 1 String)
(3) While user has not filled the array and has not entered a sentinel value (EG: -1)
     (a) Prompt for student grade
     (b) Input grade into an array (1 Array)
(4) After the user has filled the array or entered a sentinal value
     (a) Sum the grades (1 Function; Operator +)
     (b) Average the grades (1 function Operator /)
     (c) Give the highest grade (1 function)
     (d) Output sum, average and highest grade
Last edited on
Topic archived. No new replies allowed.