formular: potential energy = mass x height x acceleration due togravity kinetic energy = mass x velocity^2/2
Fantastic news! We've Found the answer you've been seeking!
Question:
formular: potential energy = mass x height x acceleration due togravity kinetic energy = mass x velocity^2/2
using java language
Transcribed Image Text:
2. You have been contacted by a science teacher to design a program to calculate either the kinetic energy or potential energy of a body to be used by his students to verify their calculated results. The program should ask the user to enter 1 to calculate potential energy or 2 to calculate the kinetic energy. Base on the option entered, your program should ask the user to enter the necessary inputs and display the result. program should ask the user to enter a character to calculate another or to exit the Your program. Program Design ENERGY CALCULATOR Enter 1 for potential energy or 2 for kinetic energy calculation > 1 Enter the mass of the body> 15 Enter the height of the body > 2 Enter the acceleration due to gravity > 9.8 Potential energy = 294.00J Enter e to exit or c to continue> c Enter 1 for potential energy or 2 for kinetic energy calculation > 2 Enter the mass of the body > 20 Enter the velocity of the body> 5 Kinetic energy = 250.00J Enter e to exit or c to continue > e 2. You have been contacted by a science teacher to design a program to calculate either the kinetic energy or potential energy of a body to be used by his students to verify their calculated results. The program should ask the user to enter 1 to calculate potential energy or 2 to calculate the kinetic energy. Base on the option entered, your program should ask the user to enter the necessary inputs and display the result. program should ask the user to enter a character to calculate another or to exit the Your program. Program Design ENERGY CALCULATOR Enter 1 for potential energy or 2 for kinetic energy calculation > 1 Enter the mass of the body> 15 Enter the height of the body > 2 Enter the acceleration due to gravity > 9.8 Potential energy = 294.00J Enter e to exit or c to continue> c Enter 1 for potential energy or 2 for kinetic energy calculation > 2 Enter the mass of the body > 20 Enter the velocity of the body> 5 Kinetic energy = 250.00J Enter e to exit or c to continue > e
Expert Answer:
Answer rating: 100% (QA)
program in Java that calculates potential energy and kinetic energy based on user input java import ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Energy can be stored as internal energy, potential energy or kinetic energy. Are those energy forms all 100% available?
-
Using java language and data structure Problem 2 (Ungraded) Given the below Linked List named list1, show the content of the linked list result after the code is executed. list1 head-> 25 80 90 8 45...
-
Using java language please and if you can explain each step would be amazing. Regarding the 2nd question, can you show and explain how to have the method read from a text file and outputs to another...
-
Shemekia applied to a college that uses multiple regression to select students. This college only considers students whose predicted firstyear GPA is 3.0 or higher. Shemekias predicted GPA was 2.9...
-
IKEA is the worlds largest furniture retailer. It has many non-equity alliances with suppliers and manufacturers around the world. IKEA also makes strategic use of non-equity alliances and...
-
The following trial balance was extracted from the books of R. Giggs at the close of business on 28 February 2014. Required: Draw up the statement of profit or loss for the year ending 28 February...
-
Identify the most appropriate approach and then design. Provide a rationale as to why this approach and design would be most appropriate. Develop a hypothetical research scenario that would...
-
Carlos Arruza Company exchanged equipment used in its manufacturing operations plus $3,000 in cash for similar equipment used in the operations of Tony LoBianco Company. The following information...
-
6. Suppose the plates of a square parallel-plate capacitor are placed 2.0mm apart. If the area of each plate is 0.5cm, how many excess electrons will be on the negative plate if a voltage of 1.5V is...
-
Palese bought five lottery tickets. He used a play slip to select his numbers, then filled them in on the grid. He put his tickets in his pocket. At home, he did the laundry. Several days later, he...
-
Colin borrows 10,000 at an interest rate of 6.1% compounded monthly. At the end of the loan, Colin pays 14,851.20. Calculate the length of Colin's loan in years. Emily borrows 20,000 for 8 years at a...
-
You are in the market for a used car. At a used car lot, you know that the Blue Book value of the car you are looking at is between $15,000 and $19,000. If you believe the dealer knows as much about...
-
Are bloggers protected by journalists privilege? Does the Privacy Protection Act of 1980 apply to them?
-
How have media ownership restrictions changed since the Telecommunications Act of 1996 was passed and what impact has that had on the media industry?
-
Under Section 347 of the Canadian Criminal Code, an annual rate of interest that exceeds \(60 \%\) under a credit agreement is a "criminal" rate of interest. The term "interest" is defined to include...
-
Compare welfare in a market where a firm is both a monopsony and a monopoly (as in Question 3.6) to welfare in markets in which the firm has a monopsony in the input market but acts as a price taker...
-
Determine the two best decision alternatives by a conservative decision maker. Decision dl d2 d3 d4 States of Nature sl -350 900 500 700 750 -380 210 -360 8.3 1100 600 -370 700
-
A Firm intends to invest some capital for a period of 15 years; the Firm's Management considers three Options, each consisting of purchasing a machinery of a specific brand, different for each...
-
1. How can Walmart change its image with consumers? 2. Will a change in image allow Walmart to charge a price premium? BusinessWeek story in competitive pricing between Walmart and Target. Walmart...
-
Licensing the brand name and symbol is an important source of revenue for Harley. What types of products do you think do not fit with the Harley image and therefore are not good candidates for...
-
What are the risks BMW faces as it continues to add new cars to its product line?
-
Personalized medicine may be used a. to characterize types of tumors. b. to predict the outcome of certain types of cancers. c. to determine the proper dosage of drugs. d. in all of the above.
-
Tumor-suppressor genes promote cancer when a. they are overexpressed. b. they are expressed in the wrong cell type. c. their function is inactivated. d. they are expressed at the wrong stage of...
-
A mutant gene that promotes cancer when it is overexpressed is called a. a tumor-suppressor gene. b. an oncogene. c. both a and b. d. neither a nor b.
Study smarter with the SolutionInn App