You have recently seen a motivational sports movie and want to start exercising regularly. Your coach tells you that it is important to get up early in the morning to exercise. She sets up a schedule for you: On weekdays (Monday - Friday), you have to get up at 5:00. On weekends (Saturday & Sunday), you can wake up at 6:00. However, if you are on vacation, then you can get up at 7:00 on weekdays and 9:00 on weekends. Write a program to print the time you should get up. Input Format The first line contains n - the number of inputs. Following that are n lines, each containing an integer and a boolean value. The integer tells you the day it is (1-Sunday, 2-Monday, 3-Tuesday, 4-Wednesday, 5-Thursday, 6-Friday, 7-Saturday). The boolean is true if you are on vacation and false if you’re not on vacation. You have to print the time you should get up. Use Python Example Input: 1 false 5 false 1 true Output: 6:00 5:00 9:00
Answers
Answer:
ok
Explanation:
You have recently seen a motivational sports movie and want to start exercising regularly. Your coach tells you that it is important to get up early in the morning to exercise. She sets up a schedule for you: On weekdays (Monday - Friday), you have to get up at 5:00. On weekends (Saturday & Sunday), you can wake up at 6:00. However, if you are on vacation, then you can get up at 7:00 on weekdays and 9:00 on weekends. Write a program to print the time you should get up. Input Format The first line contains n - the number of inputs. Following that are n lines, each containing an integer and a boolean value. The integer tells you the day it is (1-Sunday, 2-Monday, 3-Tuesday, 4-Wednesday, 5-Thursday, 6-Friday, 7-Saturday). The boolean is true if you are on vacation and false if you’re not on vacation. You have to print the time you should get up. Use Python Example Input: 1 false 5 false 1 true Output: 6:00 5:00 9:00
Broooi oyee chill na. Hope this will help