This first assignment is all about the chapter 1 and 2 class lectures and readings. There...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
This first assignment is all about the chapter 1 and 2 class lectures and readings. There are tour parts to this project, with the first part being the easiest, and then the last part is the most complex. You MUST include all of your pseudocode and comments that are relevant to what you are doing and why. Parts Part 1_ _In this first part, create a console program will ask the user the number of years and months as two separate questions, and then output the number of seconds that it represents. Assume that a year is 365 days and a month is 30 days. Part 2_ _In this second part, your task is to write a console program that will ask the user the number of gallons, quarts, and pints as three separate questions, and then output the number of liters (L) that it represents. Part 3_ _In this third part, your task is to write a GUI program to accept input from the user in the form of a decimal value that represents the currency in dollars and output two separate numbers that represent the number of dollars and cents. Part 4 In this third part, your task is to write a GUI program to accept input from the user in the form of either miles/hour or kilometers/hour, then ask the user if the measurement is in miles or kilometers. The user will enter the text "miles" or "kilometers". Once you have both entries, you will then output in feet/second. Assignment Constraints In this assignment, you are allowed to use the following: If / else statements Some of the topics that you ** may not ** use include: Loops Additional methods Conversion classes String class methods The only classes that ** you may import ** are the following: javax.swing.JOptionPane java.util.Scanner Conversions For all of your conversions, you must create constants for any of your conversion factors. For example, if the assignment is to convert from inches to feet, then you should create a constant like INCHES_TO_FEET = 12. Also, your output numbers should be provided in two decimal places. This first assignment is all about the chapter 1 and 2 class lectures and readings. There are tour parts to this project, with the first part being the easiest, and then the last part is the most complex. You MUST include all of your pseudocode and comments that are relevant to what you are doing and why. Parts Part 1_ _In this first part, create a console program will ask the user the number of years and months as two separate questions, and then output the number of seconds that it represents. Assume that a year is 365 days and a month is 30 days. Part 2_ _In this second part, your task is to write a console program that will ask the user the number of gallons, quarts, and pints as three separate questions, and then output the number of liters (L) that it represents. Part 3_ _In this third part, your task is to write a GUI program to accept input from the user in the form of a decimal value that represents the currency in dollars and output two separate numbers that represent the number of dollars and cents. Part 4 In this third part, your task is to write a GUI program to accept input from the user in the form of either miles/hour or kilometers/hour, then ask the user if the measurement is in miles or kilometers. The user will enter the text "miles" or "kilometers". Once you have both entries, you will then output in feet/second. Assignment Constraints In this assignment, you are allowed to use the following: If / else statements Some of the topics that you ** may not ** use include: Loops Additional methods Conversion classes String class methods The only classes that ** you may import ** are the following: javax.swing.JOptionPane java.util.Scanner Conversions For all of your conversions, you must create constants for any of your conversion factors. For example, if the assignment is to convert from inches to feet, then you should create a constant like INCHES_TO_FEET = 12. Also, your output numbers should be provided in two decimal places. This first assignment is all about the chapter 1 and 2 class lectures and readings. There are tour parts to this project, with the first part being the easiest, and then the last part is the most complex. You MUST include all of your pseudocode and comments that are relevant to what you are doing and why. Parts Part 1_ _In this first part, create a console program will ask the user the number of years and months as two separate questions, and then output the number of seconds that it represents. Assume that a year is 365 days and a month is 30 days. Part 2_ _In this second part, your task is to write a console program that will ask the user the number of gallons, quarts, and pints as three separate questions, and then output the number of liters (L) that it represents. Part 3_ _In this third part, your task is to write a GUI program to accept input from the user in the form of a decimal value that represents the currency in dollars and output two separate numbers that represent the number of dollars and cents. Part 4 In this third part, your task is to write a GUI program to accept input from the user in the form of either miles/hour or kilometers/hour, then ask the user if the measurement is in miles or kilometers. The user will enter the text "miles" or "kilometers". Once you have both entries, you will then output in feet/second. Assignment Constraints In this assignment, you are allowed to use the following: If / else statements Some of the topics that you ** may not ** use include: Loops Additional methods Conversion classes String class methods The only classes that ** you may import ** are the following: javax.swing.JOptionPane java.util.Scanner Conversions For all of your conversions, you must create constants for any of your conversion factors. For example, if the assignment is to convert from inches to feet, then you should create a constant like INCHES_TO_FEET = 12. Also, your output numbers should be provided in two decimal places.
Expert Answer:
Related Book For
Intermediate Accounting
ISBN: 978-1260481952
10th edition
Authors: J. David Spiceland, James Sepe, Mark Nelson, Wayne Thomas
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Happy Hands Company has net profit margin 5.51%, total assets turnover 0.63, and equity multiplier 2.77. What is its return on shareholder equity (ROE) using DuPont analysis method
-
Refer to the Costello Music Company problem in exercise 49. a. Using time series decomposition, compute the seasonal indexes for the four quarters. b. When does Costello Music experience the largest...
-
You are considering buying a field that contains 393 barrels of oil that can be extracted. If you buy the field, you can extract the oil and sell it in one year from today; the cost of drilling and...
-
Why has the importance of environmental accounting to business grown in the past ten years?
-
Larsen Corp. manufactures car seats in its Sarnia plant. Each car seat passes through the Assembly department and the Testing department. This problem focuses on the Assembly department. The...
-
According to Thomson et al (2014) what the two factor that influence competitive strategy?
-
Values for the NASDAQ composite index during the 1,500 days preceding March 10, 2006, can be downloaded from the authors web site. Calculate the one-day 99% VaR and the one-day 99% ES on March 10,...
-
In the Excel file weddings, find the averages and median wedding cost and the sample standard deviation. What would you tell a newly engaged couple about what cost o expect? Consider the effect of...
-
There appear to be two possible equilibria for rival sports leagues: an agreement to have their champions compete and then eventually the leagues merge like baseball (the AL and NL for baseball) OR a...
-
1) Define effective stress, how it was derived, and how it is used. 2) Sketch a modified Goodman's diagram for tensile loading, label the axis clearly, and, for a given load case, sketch components...
-
Swifty Corporation produces area rugs. The following unit cost information is available: direct materials $ 1 5 , direct labor $ 8 , variable manufacturing overhead $ 6 , fixed manufacturing overhead...
-
A thick-walled cylinder is loaded externally by P, as shown in Fig 6.2. Given that: a = 80 mm. b = 160 mm. c = = 30 MPa, Po 10.0 MPa: = Compute the magnitude of the internal pressure, P; given by the...
-
Consider an outline of the key contents and structure of a comprehensive business plan within the framework of risk and financial management. Required: Discuss the importance of each section in...
-
21. Hockey player Zdeno Chara holds the world record for the fastest slap shot in hockey. He was able to get a hockey puck to travel at approximately 48.6 m/s! If an average hockey puck has a mass of...
-
Coastal Refining Company operates a refinery with a distillation capacity of 12,000 barrels per day. As a new member of Coastal's management team, you have been given the task of developing a...
-
Access the FASB Accounting Standards Codification at the FASB website (www.fasb.org). Determine the specific eight- or nine-digit Codification citation (XXX-XX-XX-XX) for accounting for each of the...
-
Corporations offer the advantage of limited liability. Explain what is meant by that statement.
-
On January 1, 2021, Maywood Hydraulics leased drilling equipment from Aqua Leasing for a four-year period ending December 31, 2024, at which time possession of the leased asset will revert back to...
-
Derive the frequency equation for the longitudinal vibration of the systems shown in Fig. 8.28. M p. A, E.1 p.A. E,I M k p. A. E,I ell M k (a) (b) FIGURE 8.28 Bar with different end conditions. (c)
-
Fill in the Blank. The ____________ energy of a beam is denoted by \(\frac{1}{2} \int_{0}^{l} E I\left(\frac{\partial^{2} w}{\partial x^{2}} ight)^{2} d x\).
-
A thin bar of length \(l\) and mass \(m\) is clamped at one end and free at the other. What mass \(M\) must be attached to the free end in order to decrease the fundamental frequency of longitudinal...
Study smarter with the SolutionInn App