Answers
Please mention programming language. The following code will work for Java/C/ C++
int num_weeks = n / 7;
int extra_days = n % 7;
int week_ends = num_weeks * 2;
if(extra_days <= 2)
week_ends += extra_days;
return week_ends;
.Similar Solved Questions
1 answer
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...
1 answer
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...
1 answer
DE S$ 925, should it be purchased? Explain. duct to gain for the next three years....
DE S$ 925, should it be purchased? Explain. duct to gain for the next three years. Afterwards, its free cash w/dual growth rates) Tech, Inc, a regional technology manufacturer pans to rll uota neow DDM n market share. This expansion is expected to capture a significant share of the market ar flows a...
1 answer
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...
1 answer
Andrews Company has $95,000 available to pay dividends. It has 2,000 shares of 10%, $100 par,...
Andrews Company has $95,000 available to pay dividends. It has 2,000 shares of 10%, $100 par, preferred stock and 20,000 shares of $10 par common stock outstanding. The preferred stock is selling for $125 per share, and the common stock is selling for $ 20 per share. Required Compute the dividend yi...
1 answer
Domingo Corporation uses the weighted-average method in its process costing system. This month, the beginning inventory...
Domingo Corporation uses the weighted-average method in its process costing system. This month, the beginning inventory in the first processing department consisted of 2,400 units. The costs and percentage completion of these units in beginning inventory were: Cost Percent Complete Materials ...
1 answer
Current Attempt in Progress Use the ratios below and statement of financial position to fill in...
Current Attempt in Progress Use the ratios below and statement of financial position to fill in the missing information. (Round debt to total assets ratio to 1 place, e.g. 2.1%.) Novak Corporation had the following comparative statements of financial position: Novak Corporation Statement of Financia...
1 answer
We were unable to transcribe this imagei Display from Technology Hypothesis test results: u: Mean of...
We were unable to transcribe this imagei Display from Technology Hypothesis test results: u: Mean of variable Ho p=24 H p>24 Variable Sample Mean Length greater than Std. Err. DE 3.03801 0243579 499 2.619314 T-Stat P-value 0.0045 Print Done...
1 answer
Reactive Power Generation has the following capital structure. Its corporate tax rate is 21%. Security Market...
Reactive Power Generation has the following capital structure. Its corporate tax rate is 21%. Security Market Value Required Rate of Return Debt $ 20 million 2 % Preferred stock 30 million 4 Common stock 50 million 8 What is its WACC? (Do not round intermediate calculations. En...
1 answer
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...
1 answer
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...
1 answer
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...
1 answer
V8-7. Write the equation of motion for the given system with y as the dependent variable....
V8-7. Write the equation of motion for the given system with y as the dependent variable. Obtain the expression for the undamped natural frequency. What restriction is necessary in order to treat it as a linear system? cable...
1 answer
.5. Pills can help with headaches of the medical variety, but antimatter pills, which may be...
.5. Pills can help with headaches of the medical variety, but antimatter pills, which may be converted into energy with 100% efficiency can help with power grid headaches - (a) Suppose an antimatter pill with a rest mass of 1.00 grams is at reference rela- tive to Youngstown. How much energy, in Jou...
1 answer
It is believed that nearsightedness affects about 8% of all children. In a random sample of...
It is believed that nearsightedness affects about 8% of all children. In a random sample of 194 children, 21 are nearsighted. (a) Construct hypotheses appropriate for the following question: do these data provide evidence that the 8% value is inaccurate? ОНо: р 3D.08 Н&...
1 answer
Question 4 Water flows in a sand filter, shown in the figure below. The cross section...
Question 4 Water flows in a sand filter, shown in the figure below. The cross section is 400 in2 and flow rate is 6.5 x 10-4 ft3/sec. What is the velocity, V? QUESTION 4 Water flows in a sand filter, shown in the figure below. The cross section is 400 in2 and flow rate is 6.5 x 10-4 fsec. Wha...