ok i want to make a program to show a teacher at my school so i can get into computer Ap which teaches you java(but they say u have to know stuff to get in it makes no sense i am in highschool).
here is some seudocode and the code i already have.
int grades = 0;
boolean acceptance = true;//a variable to see if the user got accepted into the course
ask user ("what did u get in math");
input = grades //user inputs his math grades
if (grades >= 89)
display ("you have a good chance of being accepted");
else
display ("you still have a chance i would apply");
ask user ("did you get into the course");
if (acceptance = true)
display("nice, good job");
else
display("sorry, better luck next time")
end
here is wat i have so far already written in java
public class computer
{
public static void main(String[] args)
{
boolean acceptance;
int grades = 0;
System.out.println("what is your grade in math");
//need the input function right here
if (grades >= 89)
System.out.println("you have a good chance of getting into computer AP");
else
System.out.println("you still have a chance but it will be harder to get in");
}
}
So i need to know the input functions and do i need to end that before i can start the other if then statement with the boolean, and if anybody feels like they have time could u tell me how i would make this into a gui. Thank you for your help i really want to get into this course.