In physics, an object that is in motion is said to have (KE) kinetic energy. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In physics, an object that is in motion is said to have (KE) kinetic energy. The following formula can be used to determine a moving object's KE: M= mass(kg) V= velocity(m/s) KE = % mv KE = Kinetic energy(J) %3D Write a program to colculate the amount of kinetic energy that the object has when given the object's mass (in grams) and velocity (in meters per second). Note that, mass of the object is enter in gram (g) unit. However, the programable to convert the mass in gram (g) to kilogram (kg) before calculating the Kinetic Energy (KE). Here is a sampie run: Input the object's mass (g):10000 Input the object's velocity (m/s): 5 The kinetic energy (Joules): 125.00 YOUR SUGGESTION: 1. Requirement Specification (2 marks) 2. Analysis (3 marks) 3. Design the algorithm of the program in pseudo-code or flowchart. (4 marks) 4. Write down your complete source code. Include documentation for the program at appropriate lines of code. (4 marks) 5. Testing and verification (a) Compile the progam. Record what is printed in Output Window. (2 marks) (b) Re-compile and enter different inputs. Record the output. (2 marks) (c) Do you feel you are getting valid output? Give your reason. (3 marks) In physics, an object that is in motion is said to have (KE) kinetic energy. The following formula can be used to determine a moving object's KE: M= mass(kg) V= velocity(m/s) KE = % mv KE = Kinetic energy(J) %3D Write a program to colculate the amount of kinetic energy that the object has when given the object's mass (in grams) and velocity (in meters per second). Note that, mass of the object is enter in gram (g) unit. However, the programable to convert the mass in gram (g) to kilogram (kg) before calculating the Kinetic Energy (KE). Here is a sampie run: Input the object's mass (g):10000 Input the object's velocity (m/s): 5 The kinetic energy (Joules): 125.00 YOUR SUGGESTION: 1. Requirement Specification (2 marks) 2. Analysis (3 marks) 3. Design the algorithm of the program in pseudo-code or flowchart. (4 marks) 4. Write down your complete source code. Include documentation for the program at appropriate lines of code. (4 marks) 5. Testing and verification (a) Compile the progam. Record what is printed in Output Window. (2 marks) (b) Re-compile and enter different inputs. Record the output. (2 marks) (c) Do you feel you are getting valid output? Give your reason. (3 marks)
Expert Answer:
Related Book For
Materials and process in manufacturing
ISBN: 978-0471656531
9th edition
Authors: E. Paul DeGarmo, J T. Black, Ronald A. Kohser
Posted Date:
Students also viewed these physics questions
-
Note: Q7 (c) - Your calculation should include both Australian and Chinese Sales. Q7 (d) The new selling price is referring to the selling price in China Q7 (e) Your table should report the...
-
A get retardation assay can be used to determine if a protein bids to a segment of DNA. When a segment of DNA is bound by a protein. Its mobility will be retarded, and the DNA band will appear higher...
-
A magnetic field can be used to determine the sign of charge carriers in a current- carrying wire. Consider a wide conducting strip in a magnetic field oriented as shown in Fig. 19.34. The charge...
-
Svengool Inc. financial statements included the following amounts for the current year: Retired bonds $67,000 30,000 Proceeds from collection of note receivable Dividends received 11,000 Acquired...
-
The equilibrium constant Kc for the reaction at 450oC is 0.159. Calculate the equilibrium composition when 1.00 mol N2 is mixed with 3.00 mol H2 in a 5.00-L vessel. N2(g) 3H2(g) 2NH3(g)
-
Suppose you walk in a straight line from a point \(\mathrm{P}\) to a point \(\mathrm{Q}, 2 \mathrm{~m}\) away from \(\mathrm{P}\), and then walk back along the same line to P. (a) What is the \(x\)...
-
When the pump shown in Fig. P5.121 is stopped, there is no flow through the system and the spring force is zero. With the pump running, a 6 -in.-diameter jet leaves the pipe, and the spring force is...
-
The Southeastern Division of LaPlace Power and Light Company is responsible for providing dependable electric service to customers in and around the areas of Metairie, Kenner, Destreban, LaPlace,...
-
Calculate the ratio of the density at the centre of the Sun compared to the density of the photosphere. Density of Sun at the centre: 1.6 x 10 5 kg m -3 Density of the Sun in the photosphere: 2 x 10...
-
The following table summarizes the operating results for Bene Petits first year of operations: Bene Petit First year operating data: Single (1 serving) Dual (2 servings) Family (4 servings) Total...
-
In March 2020, Ana buys a house worth $440,000 in Florida. She puts 5% down and takes out a mortgage loan for the rest of the balance. In May 2020, Ana decides to add John to the deed of the house as...
-
As you did for the previous exercise, plan for one person in another room to present to two or three team members online. This time, something goes wrong. The audience can invent whatever mishap they...
-
Working in groups of three, practice answering a behavioral interview question from Figure 3 and others you wrote for Exercise 2. Take turns, with one of you asking the question, another responding,...
-
Share the job posting you used for the previous exercise with two classmates. Use the questions in Figure 24 to provide feedback to each other. Discuss your feedback in trios. When you do, explain...
-
For your second-round job interview, a prospective employer has asked you to deliver a presentation on any topic. To make the best impressionand to leave something for the audience to remember...
-
After an interview, answer the questions in Figure 8. Write your responses and submit them to your instructor. At the end, summarize your conclusions by answering one more question: under what, if...
-
Let's assume that the nominal exchange rate between the Argentine peso and the Canadian dollar is 1,000 pesos per dollar. Furthermore, suppose that a kilogram of chopped beef costs 2.005 in Canada...
-
Provide a few individual examples who revealed what aspects of emotional intelligence?
-
What are some methods for straightening or flattening rod or sheet?
-
What are some of the more common heat sources for producing a soldered joint?
-
What tool can be used to compute the relative amounts of the component phases in a two-phase mixture? How does this tool work?
-
How are the identifiable assets and liabilities acquired in a business combination measured?
-
What is meant by deferred consideration and how is it accounted for?
-
Distinguish between a business combination and a non-business acquisition.
Study smarter with the SolutionInn App