write a program that will prompt the user for the number of weeks, days, hours, minutes...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
write a program that will prompt the user for the number of weeks, days, hours, minutes and seconds and your program will compute exactly how many seconds there are over that period of time. Create a Java application called Lab4_1. Example run Seconds Computation Program How many WEEKS : 2 How many DAYS : 3 How many HOURS : 17 How many MINUTES : 42 How many SECONDS : 3 Total SECONDS during that time period is: 1532 23 1532423 PART 2 - More Seconds Since that was so much fun, you have now decided that it would be interesting to be able to do the reverse. In other words, if you are given a specified number of seconds your program will compute the number of whole weeks, days, hours, minutes and seconds that it breaks down into. Your task is to write a program that will prompt the user for the number of seconds and compute the appropriate weeks, days, hours, minutes and seconds that it would cover. Create a Java application called Lab4_2. Example run Reverse Seconds Computation Program What is the total number of Number of whole WEEKS Number of whole DAYS Number of whole HOURS Number of whole MINUTES : Number of # SECONDS: : : SECONDS: 1532523 23723 write a program that will prompt the user for the number of weeks, days, hours, minutes and seconds and your program will compute exactly how many seconds there are over that period of time. Create a Java application called Lab4_1. Example run Seconds Computation Program How many WEEKS : 2 How many DAYS : 3 How many HOURS : 17 How many MINUTES : 42 How many SECONDS : 3 Total SECONDS during that time period is: 1532 23 1532423 PART 2 - More Seconds Since that was so much fun, you have now decided that it would be interesting to be able to do the reverse. In other words, if you are given a specified number of seconds your program will compute the number of whole weeks, days, hours, minutes and seconds that it breaks down into. Your task is to write a program that will prompt the user for the number of seconds and compute the appropriate weeks, days, hours, minutes and seconds that it would cover. Create a Java application called Lab4_2. Example run Reverse Seconds Computation Program What is the total number of Number of whole WEEKS Number of whole DAYS Number of whole HOURS Number of whole MINUTES : Number of # SECONDS: : : SECONDS: 1532523 23723
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class Lab41 public static void mainString args Scanner scanner new Sca... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
On January 1, 2012, Albert invested $1,000 at 6 percent interest per year for three years. The CPI (times 100) on January 1, 2012, stood at 100. On January 1, 2013, the CPI was 105; on January 1,...
-
A transformer has 320 turns in the primary coil and 120 in the secondary coil. What kind of transformer is this, and by what factor does if changes the voltage? By what factor does if change the...
-
A certain raw material is classified as to moisture content X (in percent) and impurity Y (in percent). Let X and Y have the joint pmf given by (a) Find the marginal pmfs, the means, and the...
-
As a gambling facility, MGM Desert Inn, Inc., regularly holds and executes negotiable instruments. During a period of two months, patron William E. Shack Jr. entered MGM and delivered eight checks to...
-
The capital investment committee of Touch of Eden Landscaping Company is considering two capital investments. The estimated income from operations and net cash flows from each investment are as...
-
Block 1 m m Block 2 Note: Figure not drawn to scale. Two blocks are connected by a string of negligible mass that passes over massless pulleys that turn with negligible friction, as shown in the...
-
Fourth-Sixth-Twelfth Bank currently pays an annuall dividend of $1.40 per share. After extensive analysis, you forecast that the Bank's stock will continue to pay the $1.40 dividend for four years....
-
The message signal m(t), whose spectrum M(f) is shown below, is passed through the system shown in that figure. m(t) y(t) = x(t) Square Law Bandpass YEEKE Filter M (f) os2 fot x(t) Device -W cos2nfot...
-
An ala carte restaurant serves a variety of cuisines from three different regions. The food from different regions involve both common and specific materials (e.g. vegetables, meat, and spices) and...
-
Use a search engine (Business Source Complete is provided in my DHA) to explore commonly recognized forms of bias within the realm of research and academia. Numerous types of bias have been...
-
I have to estimate the budget for social media marketing as an air Canada manager for different campaign. Just give me some social media marketing campaign with the cost it took.
-
Explain the biggest mergers that have taken place throughout the airline industry and a few of the complexities that came along with these acquisitions.
-
Porter's Five Forces focus on competitive forces that affect an organization. In many industries, including the healthcare industry, there are complementary products and services that add value to...
-
Which of the following is the appropriate DEBIT entry for the following transaction? Purchased inventory costing $4,000 on account from a supplier. Inventory $4,000 Accounts Payable $4,000 Cash...
-
Dawson Companys balance sheet information at the end of 2019 and 2020 is as follows: Additional information: The company did not issue any common stock during 2020. Required : Next Level Fill in the...
-
Write a program that copies one file to another. Have the program take the filenames from the command line. Have the program report if it cannot open a file.
-
Rewrite the following so that it doesnt use using declarations or using directives: #include using namespace std; int main() { double x; cout < < "Enter value: "; while (! (cin >> x) ) { cout < <...
-
a. What does the following short program display and why? #include using namespace std; double up(double x) { return 2.0* x;} void r1(const double &rx) {cout < < const double & rx ;} void r1(double...
-
Lana Priest set up a home sewing business on 1 July 2019. Usually, Lana collects $20 per hour for sewing on the completion of each days work and pays for the maintenance of her machine with cash....
-
Craigs Car Detailing Service had the following accounts and account balances in the adjusted trial balance columns of its worksheet for the year ended 30 June 2019. Required (a) Record the required...
-
The accounts below are taken from the ledger of Bartel Music Consulting on 30 June 2019, the end of the current financial year. Required (a) Record the closing entries that affected the accounts. (b)...
Study smarter with the SolutionInn App