You have been assigned to a new project at work. The previous engineer had created the following file, which your new boss claims does not work. Debug the program to correct all errors.
These files must be corrected to eliminate any syntax, runtime, formula coding, and formula derivation errors. You may assume that the header comments at the top of the program and all comments throughout the program are correct.
% Problem Slaloming: A ball.is thrown vertically :into
% the air with an initial kinetic energy of 2,500 joules.
% As the ball rises, it gradually loses kinetic energy
% as its potential energy increases. At the top of
% its flight, when its vertical speed goes to zero, all of
% the kinetic energy has been converted into potential energy.
% Assume that no energy is lost to frictional drag, etc.
% How high does the ball rise in units of meters if it has
% a mass of 5 kilograms?
% Input Variables
% KE - Kinetic Energy [J]
% m - Mass of ball [kg]
% Output Variables
% H - Max height of ball [m]
% Other Variables
% g - Acceleration due to gravity {m/s^2]
% Assumptions
% No energy losses due to friction
% g = 9.8 m/s^2
clearscreen
clearworkspace
% Set initial variables
2500 = KE;
m = 5 kg;
gravity = 9.8;
% Calculate height, assuming
% Kinetic Energy = height * mass * -gravity
KE(2500) = H * m * g
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 16 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
Additional Engineering Textbook Solutions
Vector Mechanics for Engineers: Statics and Dynamics
Fluid Mechanics: Fundamentals and Applications
Database Concepts (8th Edition)
Experiencing MIS
Electric Circuits. (11th Edition)
Mechanics of Materials (10th Edition)
- Copyright 2013 Pearson Education, publishing as Prentice Hall 2. Determine the force that the jaws J of the metal cutters exert on the smooth cable C if 100-N forces are applied to the handles. The jaws are pinned at E and A, and D and B. There is also a pin at F. E 400 mm 15° D B 30 mm² 80 mm/ 20 mm 15° $15° 20 mm 400 mm 15° 100 N 100 N 15°arrow_forwardDraw for it make a match which directionarrow_forwardQ.1) Block A is connected to block B by a pulley system as shown. The weights of blocks A and B are 100 lbs and 70 lbs, respectively. Assume negligible friction between the rope and all pulleys as well as between block B and the incline and neglect the mass of all pulleys and cables. Determine the angle 0 required to keep the system in equilibrium. (At least two FBDs must be drawn for full credit) B Ꮎ 000arrow_forward
- pls solvearrow_forward+1. 0,63 fin r= 0.051 P The stepped rod in sketch is subjected to a tensile force that varies between 4000 and 7000 lb. The rod has a machined surface finish everywhere except the shoulder area, where a grinding operation has been performed to improve the fatigue resistance of the rod. Using a 99% probability of survival, determine the safety factor for infinite life if the rod is made of AISI 1080 steel, quenched and tempered at 800°c Use the Goodman line. Does the part fail at the fillet? Explainarrow_forwardSolve this problem and show all of the workarrow_forward
- I need drawing solution,draw each one by one no Aiarrow_forwardQu. 17 Compute linear density values for [100] for silver (Ag). Express your answer in nm''. . Round off the answer to three significant figures. Qu. 18 Compute linear density value for [111] direction for silver (Ag). Express your answer in nm'. Round off the answer to three significant figures. Qu. 19 Compute planar density value for (100) plane for chromium (Cr). Express your answer in nm?. Round off the answer to two significant figures. Qu. 20 Compute planar density value for (110) plane for chromium (Cr). Express your answer in nm ≥ to four significant figures. show all work please in material engineeringarrow_forward3-142arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
![Text book image](https://www.bartleby.com/isbn_cover_images/9780190698614/9780190698614_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)