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
-
If the speed of a wave doubles while the frequency remains the same, what happens to the wavelength?
-
Identify the subject and predicate terms in, and name the form of, each of the following propositions: No people who have not themselves done creative work in the arts are responsible critics on...
-
Mr. Tam is the front man for the Asian American dance-rock band The Slants. Mr. Tam named his band The Slants to reclaim and take ownership of Asian stereotypes. The band draws inspiration for its...
-
Hudson Company operates two factories. The company applies factory overhead to jobs on the basis of machine hours in Factory 1 and on the basis of direct labor hours in Factory 2. Estimated factory...
-
2. Consider the variation of hot-potato routing/coordination routing game discussed in class, where there are three strategies: Payoff Hot Potato Long Path Planned Long-Path | Planned Hot Potato...
-
David R. and Ella M. Cole (ages 39 and 38, respectively) are husband and wife who live at 1820 Elk Avenue, Denver, CO 80202. David is a regional sales manager for Wren Industries, a national...
-
Each of you will be assigned an everyday item. You will determine a "new use" for this item. It should be something that is completely different than the "normal" use for the product. Then you will...
-
What anticipations do you harbor concerning the potential contributions of the Internet of Things, machine learning, or artificial intelligence in the realm of Continuous Quality Improvement (CQI)?
-
Problem 5.9. Let n be an integer. Prove that if n is divisible by 3, then n is divisible by 3. Problem 5.10. Show that 3 is not rational. (You may want to use the result of Problem 5.9 to work this...
-
Consider the probability distribution of the first year cash flows for the DEF Project: Project Cash Flow Probability $1,000 20% $2,000 60% $3,000 20% Please show all work, step by step, for a thumbs...
-
Lauren will make annual contributions in the amount of $4,255, on average , to a 401(k) over the next 39 years. Her employer will match 80% of her contributions. She is currently being taxed at 28%,...
-
A presently owned machine has the projected market value and M&O costs shown below. An outside vendor of services has offered to provide the service of the existing machine at a fixed price per year....
-
Show that the energy integral associated with the Klein-Gordon equation in Exercise 1 is given by E(1)= [(1, f +c*|Vuf +d |uf) dr. Show that E(t) is independent of t.
-
The relationship described in question 7 does not always appear to hold. What factors, besides the number of firms in the market, might affect margins?
-
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...
-
A function \(f\left(x_{1}, x_{2} ight)\) of two variables \(x_{1}\) and \(x_{2}\) is given by a. Multiply the matrices and express \(f\) as a polynomial in \(x_{1}\) and \(x_{2}\). b. Determine the...
-
A function \(f(x, y, z)\) of \(x, y\), and \(z\) is defined as a. Multiply the matrices and express \(f\) as a polynomial in \(x, y\), and \(z\). b. Write down the three equations necessary to find...
-
Solve the matrix equation \([\mathbf{K}]\{\mathbf{Q}\}=\{\mathbf{F}\}\) using forward reduction and backward substitution, where, 5-10 [K] = -13-1 0-1 1 {F}= 0
Study smarter with the SolutionInn App