Question: Write C + + only C + + program that prompts the user to input the years of education and output the level of diploma.

Write C++ only C++
program that prompts the user to input the years of education and output the level of diploma.
Define an enumeration type, Education, that has the value Elementary, JuniorHigh, SeniorHigh, College
enum Education {Elementary, JuniorHigh, SeniorHigh, College};
Write a function called 'Diploma' that takes one parameter, a number representing the years of education. The function should return the level of diploma.
//function prototype
Education Diploma(int);
Years of Elementary school Education: 15
Years of Junior High School Education: 68
Years of High School Education: 912
Years of associate degree or bachelor's Degree: 13
16
Your Program will ask user whether to continue running the program. If the user enters 'Y', the program will continue. If the user enters any other input, the program will exit.
(Hint: Using while loop or do - while loop)
For example:
Level of Diploma
Enter the years of the education: 6
The level of diploma is: Junior High School Education
Do you want to continue the application (Please enter 'Y' to continue. Any other input will exit the program.)?y
q,
Level of Diploma
q,
Enter the years of the education: 5
The level of diploma is: Elementary School Education
Oo you want to continue the application (Please enter 'Y' to continue. Any other input will exit the program.)?n
Thank you for using the application.
Write C + + only C + + program that prompts the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!