Question: please give the programming code for this Tintin has just conquered Jupiter. However, on Jupiter there are not as many days as Earth. There are

please give the programming code for this
Tintin has just conquered Jupiter. However, on Jupiter there are not as many days as Earth. There are only n days. They have the same week structure: 5 week days and 2 weekends in a week And they take holidays only on weekends-never on a weekday Tintin wants to know, given some n, what is the maximum number of holidays that are possible in that year? Example, for input: 2.output is 2 , because both the days could be weekend. Example, for input: 14,output is 4 , because both we could have 4 weekends You just need to complete the method. You don't need to write the entire program You don't need to take any inputs from stdin. Please don't write header files, or the main method, Just complete the method given to you. You can define more methods if you want. Your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
