Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class HomeApproval
- {
- public static void main (String[] args)
- {
- Scanner input = new Scanner(System.in);
- System.out.println("Please enter your first name:");
- String firstName = input.nextLine();
- System.out.println(firstName + "Please enter the percentage of your down payment:");
- double downPaymentPercentage = input.nextDouble();
- if(downPaymentPercentage < 15.0)
- System.out.println("We're sorry" + firstName+ "your application has been rejected");
- else
- {
- System.out.println(firstName + "Please enter your credit score:");
- int creditScore = input.nextInt();
- if(creditScore < 500)
- System.out.println("Congratulations!!" + firstName + "Your application has been approved!!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement