Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class SleepyGuy {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. System.out.print("Enter how many hours SHM has overslept at Sunday\n");
  7. int SHMhours = Integer.parseInt(scanner.nextLine());
  8. System.out.print("Enter Maria expectations in the beginning of the day for SHM to wake up\n");
  9. int MariaWaitingTime = Integer.parseInt(scanner.nextLine());
  10.  
  11. double SundayStartsAT = 10.0;
  12. double SHMWAKEUP = SHMhours+SundayStartsAT;
  13. double MariaEXPT = SundayStartsAT+MariaWaitingTime;
  14. double daylastsfor = 22-SundayStartsAT;
  15. if (SHMWAKEUP <=MariaEXPT) {
  16. System.out.printf("Shmatkata wake up at %.0f. Maria is Happy. There is some time for her to spend the day with her man", SHMWAKEUP);
  17. } else if (SHMhours>=MariaEXPT && SHMhours <= daylastsfor) {
  18. System.out.printf("Shmatkata wake up at %.0f. SHM is going to spend the rest with Maria mad at him", SHMWAKEUP);
  19. } else {
  20. System.out.println("SHM if fucked up. Better not to try to talk to Maria or he`ll be dead. There is other," +
  21. "weekend coming soon.!");
  22. }
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement