Write a program to convert specified days into years, weeks and days. Ignore the leap years....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to convert specified days into years, weeks and days. Ignore the leap years. [Note: 1329 is the example of input entered by user] Sample program output: Number of days: 1329 Years = 3 Weeks = 33 Days = 3 Write a program to convert specified days into years, weeks and days. Ignore the leap years. [Note: 1329 is the example of input entered by user] Sample program output: Number of days: 1329 Years = 3 Weeks = 33 Days = 3
Expert Answer:
Answer rating: 100% (QA)
You are asked to write a program that converts a given number of days into years weeks and days not ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Joe's Book Store stocks the book "The Goal" by Eli Goldratt. The demand for the books is 50 per week, it costs $100 per shipment for transportation costs, $25 for purchasing salaries and expenses,...
-
The Julian calendar was a reform of the Roman calendar introduced by Julius Caesar in 46 BC (708 AUC). It took effect in 45 BC (709AUC). It was the predominant calendar in most of Europe, and in...
-
1) Sleep More Corporation has pledged to pay a $10 per share dividend every year indefinitely. if you require an 11% return on your investment, how much will you pay for the company's shares today? ...
-
Holt Company purchased a computer for $8,000 on January 1, 2009. Straight-line depreciation is used, based on a 5-year life and a $1,000 salvage value . In 2011, the estimates are revised. Holt now...
-
How does a pricing policy help companies differentiate their brands from their competitors?
-
Continue Exercise P13.1, checking the words against the /usr/share/dict/words file on your computer, or the words.txt file in the companion code for this book. For a given number, return only actual...
-
Why is a distinction made between conventional accounting and ecological accounting?
-
Calculate (a) The tension FT in the wire that supports the 27-kg beam shown in Fig. 9-52, and (b) The force FW exerted by the wall on the beam (give magnitude and direction) Fw FT 40 CG Tmg
-
Maryland Novelties Company produces and sells souvenir products. Monthly income statements for two activity levels are provided below: Unit volumes Revenue Less cost of goods sold Gross margin Less...
-
Huey and Dunham (1987) measured the running speed of fence lizards, Sceloporus merriami, in Big Bend National Park in Texas. Individual lizards were captured and placed in a 2.3-meter raceway, where...
-
Read the case study Strategy Formulation for Corporate Strategy and write a paper on it
-
On 30 June 2020 Jorge sold a house for 308,000. The house had been purchased on 1 January 2003 for 98,000 and used by Jorge as follows: Jorge let the house during all of his periods of absence....
-
In January 1981, Norman bought a freehold building for use in his business at a cost of 120,000. The building had a market value on 31 March 1982 of 125,000. In June 2015 he sold the building for...
-
Melissa is a sole trader. Her capital gains and capital losses for 2020-21 are 27,000 and 700 respectively. She has capital losses brought forward from 2019-20 of 12,900 and she also has unrelieved...
-
What is human capital? A. Immigrant labor B. Someone who operates heavy equipment C. Your professors knowledge of the economy D. A car assembly line robot.
-
For-profit colleges may face aid cuts The Obama Administration proposes a new rule: Federal aid to for-profit colleges will be cut if students in vocational programs graduate without a degree....
-
a. In the graph below, identify the areas of consumer surplus and producer surplus. Instructions: Use the tool provided PS to identify the area of producer surplus. This will drop a small triangle...
-
In Problems 1522, find the principal needed now to get each amount; that is, find the present value. To get $750 after 2 years at 2.5% compounded quarterly.
-
Revise the class Pet, as shown in Listing 6.1 of Chapter 6, so that it is serializable. Write a program that allows you to write and read objects of type Pet to a file. The program should ask the...
-
Consider the previous question, but include + or letter grades. A+ is 4.25, A is 3.75, B+ is 3.25, B is 2.75, and so on. a. Why cant we use one switch statement with no other conditionals to convert...
-
Write a program that determines the change to be dispensed from a vending machine. An item in the machine can cost between 25 cents and a dollar, in 5 cent increments (25, 30, 35, , 90, 95, or 100),...
-
A simplified vibration analysis of an airplane considers bounce and pitch motions (Fig. 6.24(a)). For this, a model consisting of a rigid bar (corresponding to the body of the airplane) supported on...
-
Derive the equations of motion, using Newton's second law of motion, for each of the systems shown in Figs. 6.21. Pulley, mass M, mass moment of inertia Jo 3r 3m T x(1) F(t) 2k 000 T x2(1) m T X3(1)...
-
Derive the equations of motion, using Newton's second law of motion, for each of the systems shown in Figs. 6.22. M, cos wt G 15 G3 13 ka 03 4 kn 12 G k3 16 G6 G Number of teeth on gear G, n, (i = 1...
Study smarter with the SolutionInn App