C++ in Xcode Education: Create a program that allows the user to input education
ID: 3839872 • Letter: C
Question
C++ in Xcode
Education: Create a program that allows the user to input educational goals from HS diploma, AA Degree, BA or BS degree, MA, Doctorate, or more. Allow the user start anywhere on their educational path from K through completion of their educational goal, and be told the amount of years remaining in school. (Please make it with more functions. Thank You.) (Please write and explain a description about the program and screenshots of the code executing. Please explain how does the game work. Please identify the data structures and algorithms in your program and how they are fundamental to the successful execution of the program.)
Explanation / Answer
package Education;
import java.io.*;
public class K_Through {
public static void main(String args[]) throws NumberFormatException, IOException{
InputStreamReader read =new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(read);
int standard;
System.out.println(" In which standard are you studing:");
standard= Integer.parseInt(in.readLine());
int total;
total = (10-standard);
System.out.println("Educational goals from HS diploma, AA Degree, BA or BS degree, MA, or Doctorate,"
+ " Allow the user start anywhere on their educational path from K through completion of their educational goal, "
+ "and be told the amount of years remaining in school");
int HS_Diploma;
System.out.println(" Enter years for HS diploma:");
HS_Diploma = Integer.parseInt(in.readLine());
int AA_Degree;
System.out.println("if you want to study more, Enter years for AA Degree:");
AA_Degree= Integer.parseInt(in.readLine());
int BA_or_BS_degree;
System.out.println("if you want to study more, Enter years for BA or BS degree:");
BA_or_BS_degree= Integer.parseInt(in.readLine());
int MA;
System.out.println("if you want to study more, Enter years for MA:");
MA = Integer.parseInt(in.readLine());
int Doctorate;
System.out.println("if you want to study more, Enter years for Doctorate:");
Doctorate = Integer.parseInt(in.readLine());
System.out.println("ENTER YOUR CHOICE "
+ "'1' for Upto HS diploma. "
+ "'2' for AA Degree. "
+ "'3' for BA or BS degree. "
+ "'4' for MA. "
+ "'5' for Doctorate");
int Value;
Value= Integer.parseInt(in.readLine());
switch(Value)
{
case 1 :
int year_HS_Diploma= HS_Diploma;
System.out.println("Years reamining"+total+year_HS_Diploma);
break;
case 2 :
int year_AA_Degree= HS_Diploma+AA_Degree;
System.out.println("Years reamining"+total+year_AA_Degree);
break;
case 3 :
int year_BA_or_BS_degree = HS_Diploma+AA_Degree+BA_or_BS_degree;
System.out.println("Years reamining"+total+year_BA_or_BS_degree);
break;
case 4 :
int year_MA = HS_Diploma+AA_Degree+BA_or_BS_degree+MA;
System.out.println("Years reamining"+total+year_MA);
break;
case 5 :
int year_Doctorate = HS_Diploma+AA_Degree+BA_or_BS_degree+MA+Doctorate;
System.out.println("Years reamining"+total+year_Doctorate);
break;
default :
System.out.println("Invalid grade");
}
}
}
As per my code firstly you have to Enter that in which standard You are studing, which will deduct for 10, and will be added with your remaing study year. Than have to select your study limit with (HS diploma, AA Degree, BA or BS degree, MA, or Doctorate) after your entering number of years of praticular study. When you will chosse study catagory it will automatically show you how many years reaming of you study.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.