Write a Program to calculate:1) Kinetic Energy 2) Potential Energy 3) Total EnergyRequirement for this assignment includes the use of at least 3 Programmer Defined Functions, with at least one of the functions using PASS BY REFERENCE Parameters. Please DO NOT use global variables unless specified.But can use global constant to store “acceleration due to gravity”. Formula & Explanation for these three are as follows:Screen Shot 2020-03-25 at 11.01.03 PM.pngScreen Shot 2020-03-25 at 11.02.51 PM.pngFor Kinetic Energy:Mass is in “kg”Velocity is in “m/s” For Potential Energy:Mass is in “kg”Height is in “m”Gravitational Acceleration is going to be considered as constant for the purpose of the program ie 9.81 Sample Output:1)Please enter mass in kg, for calculation of Kinetic Energy :2 Please enter velocity in m/s, for calculation of Kinetic Energy :5 Kinetic Energy in Joule is: 25 Please enter mass in kg, for calculation of Potential Energy :5 Please enter height in meters, for calculation of Potential Energy :2 Potential Energy in Joule is: 98.1 Total Energy is :123.1 2)Please enter mass in kg, for calculation of Kinetic Energy :2 Please enter velocity in m/s, for calculation of Kinetic Energy :2 Kinetic Energy in Joule is: 4 Please enter mass in kg, for calculation of Potential Energy :2 Please enter height in meters, for calculation of Potential Energy :2 Potential Energy is: 39.24 Total Energy in Joule is :43.24 3)Please enter mass in kg, for calculation of Kinetic Energy :10 Please enter velocity in m/s, for calculation of Kinetic Energy :10 Kinetic Energy in Joule is: 500 Please enter mass in kg, for calculation of Potential Energy :10 Please enter height in meters, for calculation of Potential Energy :10 Potential Energy is: 981 Total Energy in Joule is :1481 Note: Here is a link to understanding the concept of Kinetic Energy & Potential Energy, in case some one wants/needs to look at it.https://www.mathsisfun.com/physics/energy-potential-kinetic.html Point Distribution:-50 Does not compile-5 Warnings-5 No description multiple line comments (name, date, etc)-5 No single line comments (logic, input, output, etc)-10 Kinetic Energy-10 Potential Energy-10 Total Energy-10 Does not use at least 3 programmer defined functions-10 Does not use at least 1 reference parameter
![glass](https://eminencepapers.info/wp-content/uploads/2019/07/lead_penpot.png)
![pen](https://eminencepapers.info/wp-content/uploads/2019/07/lead_pen.png)
![clip](https://eminencepapers.info/wp-content/uploads/2019/07/Lead_paperclip.png)
![papers](https://eminencepapers.info/wp-content/uploads/2019/07/lead_papers_copy.png)
![heaphones](https://eminencepapers.info/wp-content/uploads/2019/07/lead_heaphones.png)
Write a Program to calculate:1) Kinetic Energy2) Potential Energy
Our Service Charter
1. Professional & Expert Writers: Nurse Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.
2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.
3. Plagiarism-Free Papers: All papers provided by Nurse Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.
4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Nurse Papers is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.
5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.
6. 24/7 Customer Support: At Nurse Papers , we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.
Recent Comments