Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the
Question:
Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Here is a sample run:
Enter the number of minutes: 1000000000
1000000000 minutes is approximately 1902 years and 214 days
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 90% (11 reviews)
Output Enter the number of minuter 1000000000 1000000000 minutes is approximate...View the full answer
Answered By
Fahmin Arakkal
Tutoring and Contributing expert question and answers to teachers and students.
Primarily oversees the Heat and Mass Transfer contents presented on websites and blogs.
Responsible for Creating, Editing, Updating all contents related Chemical Engineering in
latex language
4.40+
8+ Reviews
22+ Question Solved
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user to enter three cities and displays them in ascending order. Here is a sample run: Enter the first city: Chicago JEnter Enter the second city: Los Angeles JEnter...
-
Write a program that prompts the user to enter two strings and tests whether the second string is a substring of the first string. (Don?t use the indexOf method in the String class.) Analyze the time...
-
Write a program that prompts the user to enter a three-digit integer and determines whether it is a palindrome number. A number is palindrome if it reads the same from right to left and from left to...
-
How do stakeholders impact the uncertainty in a project?
-
Estimate the limit numerically or state that the limit does not exist. If infinite, state whether the one-sided limits are or - . 29. 31. lim sin h cos- lim r
-
State if the triangles in each pair are similar. If so, state how you know they are similar. AFED ALMN F 56 E N 20 M 91 70 26 16 L D
-
Two residents of California filed a lawsuit against Hertz Corporation on behalf of a group of people arguing that the companys labor practices were illegal. The corporation was labeling workers as...
-
Accessory World makes floor mats for the automobile industry. Finished sets of mats must pass through two departments: Cutting and Coating. Large sheets of synthetic material are cut to size in the...
-
A function and its graph are given. Find the domain. (Enter your answer using interval notation.) f(x) x-5 = X-8 (-0,8) U (8,00) y 10 K 5 -5 -10 X 2 4 8 10 12
-
Henderson Floor Coverings reported the following summarized data at December 31, 2016. Accounts appear in no particular order, and all have normal balances. Service Revenue ...... $ 38,000 Equipment...
-
Write a program that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14. Use the % operator to extract...
-
Listing 2.7, ShowCurrentTime.java, gives a program that displays the current time in GMT. Revise the program so that it prompts the user to enter the time zone offset to GMT and displays the time in...
-
Mrs. Meadows sells two popular brands of cookies, Chip Dip and Soft Chunk Chocolate Chip. Both cookies go through the mixing and baking departments, but Chip Dip is also dipped in chocolate in the...
-
A small ball of mass m and radius r is released from a height h = 3R. The ball rolls without slipping down the incined plane and over the circular track of radius R. Find the speed of the ball at...
-
A block of mass m = 8,9 kg slides on a rough surface and moves toward a spring with a spring constant k = 1004 N/m, as shown in the figure below. When the block is d = 13,1 m away from the spring, it...
-
Photon Corporation has a client who wants to purchase $50,000 of goods on credit. Photon thinks that the client has a 97% probability of paying the $50,000 in 3 months and a 3% chance of a complete...
-
A block of mass m = 13,9 kg is attached to the free end of a light string wrapped around a reel of radius R = 0,38 m and mass M = 7,2 kg. The reel is a uniform disk and fixed on an axis about which...
-
Define an AVL-2 tree to be a BST where each node v satisfies balance(v) {-2,-1,0,1,2}. Let N(h) be the minimum number of nodes in an AVL-2 tree of height h. Prove that h = O(lgn) for the case where...
-
The financial statements of Wetaskiwin Ltd., private company reporting under ASPE, follow: Additional information: 1. Short-term notes receivable are from loans to other companies. During the year,...
-
1. As a general strategy, would you recommend that Carl take an aggressive approach to capacity expansion or more of a wait-and-see approach? 2. Should Carl go with the option for one facility that...
-
Modify Listing 12.18 WebCrawler.java to search for the word(e.g., Computer Programming) starting from a URL (e.g., http://cs.armstrong .edu/liang). Your program prompts the user to enter the word and...
-
Write a program that prompts the user to enter a file name and displays the occurrences of each letter in the file. Letters are case insensitive. Here is a sample run: Enter a filename: Lincoln.txt...
-
Suppose the text file on the Web http://liveexample.pearsoncmg.com/data/Scores.txt contains an unspecified number of scores separated by spaces. Write a program that reads the scores from the file...
-
You have just made your first $5,200 contribution to your retirement account. Assume you earn a return of 12 percent per year and make no additional contributions. a. What will your account be worth...
-
There are two components of leadership. The first is your own personal style and the second is how you choose to lead. Use the following checklist to evaluate your leadership style: What Kind of a...
-
Selected Realized Returns, 1926-2017 Average Return Standard Deviation Small-cap stocks 16.5% 31.7% Large-cap stocks 12.1 19.8 Long-term corporate bonds 6.4 8.3 Long-term government bonds 6.0 9.9...
Study smarter with the SolutionInn App