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 Diplomaint;
Years of Elementary school Education:
Years of Junior High School Education:
Years of High School Education:
Years of associate degree or bachelor's Degree:
Your Program will ask user whether to continue running the program. If the user enters 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:
The level of diploma is: Junior High School Education
Do you want to continue the application Please enter to continue. Any other input will exit the program.y
Level of Diploma
Enter the years of the education:
The level of diploma is: Elementary School Education
Oo you want to continue the application Please enter to continue. Any other input will exit the program.n
Thank you for using the application.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
