subject

Projectile Motion Write a program to provide information on the height of a ball thrown straight up into the air. The program should request as input the initial height, h feet, and the initial velocity, v feet per second. The height of the ball after t seconds is h + vt - 16t2 feet. The program should perform the following two calculations: (a) Determine the maximum height of the ball. Note: The ball will reach its maximum height after v/32 seconds. (b) Determine approximately when the ball will hit the ground. Hint: Calculate the height after every .1 second and determine when the height is no longer a positive number. A function named getInput should be used to obtain the values of h and v and that function should call a function named isValid to ensure that the input values are posi- tive numbers. Each of the tasks (a) and (b) should be carried out by functions. See Fig. 4.35.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 25.06.2019 06:20
Horseback riders, bicyclists, and skateboarders the rules of right-of-way when they use the road ?
Answers: 1
question
Computers and Technology, 25.06.2019 10:00
*jenny is preparing a presentation on the health statistics of the 10 most populated countries. she wants to apply a blinking effect to the names of the countries, and a motion effect between the exit and entry of every slide. which options should she use? jenny should use the option to apply a special blinking effect to the names of the countries and the option to apply a motion effect between the exit and entry of every slide.
Answers: 2
question
Computers and Technology, 25.06.2019 10:20
Write a program that lets the user play the game of rock, paper, scissors against the computer. the program should work as follows. 1. when the program begins, a random number in the range of 1 through 3 is generated. if the number is 1, then the computer has chosen rock. if the number is 2, then the computer has chosen paper. if the number is 3, then the computer has chosen scissors. (donā€™t display the computerā€™s choice yet.) 2. the user enters his or her choice of ā€œrockā€, ā€œpaperā€, or ā€œscissorsā€ at the keyboard. (you can use a menu if you prefer.) 3. the computerā€™s choice is displayed. 4. a winner is selected according to the following rules: ā€¢ if one player chooses rock and the other player chooses scissors, then rock wins. (the rock breaks the scissors.) ā€¢ if one player chooses scissors and the other player chooses paper, then scissors wins. (scissors cuts paper.) ā€¢ if one player chooses paper and the other player chooses rock, then paper wins. (paper wraps rock.) ā€¢ if both players make the same choice, the game must be played again to determine the winner. be sure to divide the program into functions that perform each major task. include the code and the console output from running your program with test inputs in your report.
Answers: 3
You know the right answer?
Projectile Motion Write a program to provide information on the height of a ball thrown straight up...
Questions
question
Chemistry, 24.08.2021 21:00
question
History, 24.08.2021 21:00
question
Mathematics, 24.08.2021 21:00
question
English, 24.08.2021 21:00
question
Chemistry, 24.08.2021 21:00
question
English, 24.08.2021 21:00
question
English, 24.08.2021 21:00
question
Social Studies, 24.08.2021 21:00