CSC 130 programming help
Write a program that explores the effects of gravity on a ball that is thrown from a tower at a constant velocity. Your program will calculate how far the ball will travel, and how long it takes, before hitting the ground. Use three different classes. World class, Ball class, Tester class. The Tester class will contain the main() method and provide the control of the program. The World class will provide the acceleration force felt by the ball, and the tower height. The Ball class will contain the velocity and angle of throw of the ball. We will discuss in class the methods necessary to make this all work.
The Program will take as input:
Initial velocity
Initial angle
Tower height
The program will then return:
Distance thrown
Time to impact
P.S. if possible, please write the algorithm of the program as comment on top.
12 years ago
15
- History Homework discussion post
- Leadership assigment71
- History HW
- The primary ledger which contains all of the accounts by the accounting system is called the?
- Risk-Management Plan Portfolio Project For your Portfolio Project you will construct a risk management plan based on a specific case, which is provided below. Using the case described, construct a risk management plan, including a root-cause analysis, a
- I have economics homework
- Response to short papers
- one page paper. Need in four hours.
- Discuss and explain how including discouraged workers in the official unemployment rate would effect both the federal deficit and the...
- CJA/204 week 1