1. Engineering
  2. Computer Science
  3. objective write a program that will calculate the position of...

Question: objective write a program that will calculate the position of...

Question details

Objective: Write a program that will calculate the position of an object thrown in a vacuum First prompt the user for a name to be given to the object. Its best not to be rude when throwing something, so at least name it. Next prompt the user for the initial velocity in the x and y direction (this should assume the number will be a decimal value). Then prompt the user for the user for the amount of times that has elapsed. The program then should calculate a position in the x and y for the thrown object. Helpful Formulas: vi, is the initial velocity in the x direction o t is time o Viy is the initial velocity in the y direction o t is again time o g is gravity and is assumed to be -9.81 m/s Example Dialog: We are going to throw something! What is the name of the thing we are going to throw? Bob the Wonderball What is Bob the Wonderballs initial velocity (m/s) in thex direction? 100 What is Bob the Wonderballs initial velocity (m/s) in the y direction? 100 How much time (s) has elapsed? 10 Bob the Wonderball is at location (m) 1000.o, 509.49999999999994
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution