Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Shavit Borisov
- // CW
- import java.util.Scanner;
- public class CourseAcceptance {
- public static void main(String[] args)
- {
- Scanner in = new Scanner (System.in);
- float grade;
- boolean approval;
- System.out.println("Enter your course grade:");
- grade = in.nextFloat();
- System.out.println("Did you get the Dean's approval?");
- approval = in.nextBoolean();
- if ((grade > 75) || (approval))
- System.out.println("Accepted");
- else
- System.out.println("Not accepted");
- in.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement