C++ Question?

Without being able to use arrays and using either while loops or for loops, I need to write a program solution for this exercise:Create a program that

Without being able to use arrays and using either while loops or for loops, I need to write a program solution for this exercise:

Create a program that allows the user to enter the gender (either F or M) and GPA (0.0 through 4.0) for any number of students. The program should calculate and display the average GPA for all students, the average GPA for male students, and the average GPA for female students.

or:Without being able to use arrays and using either while loops or for loops, I need to write a program solution for this exercise:Create a program that allows the user to enter the gender (either F or M) and GPA (0.0 through 4.0) for any number of students. The program should calculate and display the average GPA for all students, the average GPA for male students, and the average GPA for female students.

Tags:write,question,