Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to calculate the range that a ball would travel when it is thrown with an initial velocity v 0 and angle .

Write a program to calculate the range that a ball would travel when it is thrown with an initial

velocity

v

0

and angle

. Based on an initial velocity provided by the user, calculate the range

every 5 degrees for angles between 5 and 85 degrees (inclusive). Use counter-controlled looping

in your program to iterate through the angle values 5, 10, 15, ... , 85. The range (distance

between the initial origin and final impact) is determined by the formula:

where

v

0

is the initial velocity of the ball, is the angle of the throw, and

g

is the acceleration

due to the earth's gravity. The value for gravity should be defined as a constant and set to -9.81

image text in transcribed
fortran program
image text in transcribed
its coding ( program to calculate ball range using counter - control looping to iterate through the angle value)
u can write it by hand
Write a program to calculate the range that a ball would travel when it is thrown with an initial velocity wand angle 0. Based on an initial velocity provided by the user, calculate the range every 5 degrees for angles between 5 and 85 degrees (inclusive). Use counter-controlled looping in your program to iterate through the angle values 5, 10, 15, ..., 85. The range (distance between the initial origin and final impact) is determined by the formula: range = - = cos sin e where is the initial velocity of the ball, is the angle of the throw, and g is the acceleration due to the earth's gravity. The value for gravity should be defined as a constant and set to -9.81 meters per second. For each angle, your program will output the range. Note, the intrinsic trigonometric functions work in radians, so the angle in degrees will need to be converted to radians for the calculations. To convert degrees to radians: radians = degrees Write a program to calculate the range that a ball would travel when it is thrown with an initial velocity vo and angle 0. Based on an initial velocity provided by the user, calculate the range every 5 degrees for angles between 5 and 85 degrees (inclusive). Use counter-controlled looping in your program to iterate through the angle values 5, 10, 15, ..., 85. The range (distance between the initial origin and final impact) is determined by the formula: 2V coses range = - cos sin 9 where vois the initial velocity of the ball, is the angle of the throw, and g is the acceleration due to the earth's gravity. The value for gravity should be defined as a constant and set to -9.81 meters per second. For each angle, your program will output the range. Note, the intrinsic trigonometric functions work in radians, so the angle in degrees will need to be converted to radians for the calculations. To convert degrees to radians: radians = degrees (180)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions