# Please give the programming code for this Tintin has just conquered Jupiter. However, on Jupiter there...

###### 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 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 Answer

#### Similar Solved Questions

##### In radical chlorination of alkanes, non-equivalent hydrogens react with chlorine atoms at different rates. At 35...
In radical chlorination of alkanes, non-equivalent hydrogens react with chlorine atoms at different rates. At 35 °C, primary, secondary, and tertiary C-H bonds react at relative rates of 1 : 3.9 : 5.2 respectively These are conditions of kinetic control where product ratios are determined by rel...
##### Use the formula for continuous compounding to compute the balance in the account after 1, 5,...
Use the formula for continuous compounding to compute the balance in the account after 1, 5, and 20 years. Also, find the APY for the account AS10,000 deposit in an account with an APR of 3.75%. The balance in the account after 1 year is approximately S (Round to the nearest cent as needed) The bala...
##### Production Possibility Frontier - Country X A B 15,1 10,6 09 Watches daily production с 4...
Production Possibility Frontier - Country X A B 15,1 10,6 09 Watches daily production с 4 F 15,4 10,4 Nw D 18, 2 1 E 0 20,0 20 25 10 15 MP3 Players Daily production Consider the graph of the production possibility frontier for country X. What is a combination of MP3 players and watches that wo...
##### Bartok Products, Inc., manufactures a chemical compound that goes through three processing stages prior to completion....
Bartok Products, Inc., manufactures a chemical compound that goes through three processing stages prior to completion. Information on work in the first department, Mixing, is given below for September: 3 Bartok Products, Inc., manufactures a chemical compound that goes through three processing stag...
##### Use the Maxwell-Boltzmann distribution of speeds to estimate the fraction of N2 molecules at 392 K...
Use the Maxwell-Boltzmann distribution of speeds to estimate the fraction of N2 molecules at 392 K that have speeds in the range 200. – 210. m·s−1. Hint: The fraction of molecules with speeds in the range v to (v + dv) is equal to f(v)dv, Please show entire integration for boltzm...
##### The operator of a pumping station has observed that demand for water during early afternoon hours...
The operator of a pumping station has observed that demand for water during early afternoon hours has an approximately exponential distribution with mean 100 cfs (cubic feet per second). (a) Find the probability that the demand will exceed 250 cfs during the early afternoon on a randomly selected da...