1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leto [7]
3 years ago
11

Write a computer program that computes the duration of a projectile’s flight and its height above the ground when it reaches the

target. As part of your solution, write and call a function that displays instructions to the program user. Note: Include functions in your program. Problem Constant G = 32.17 // gravitational constant Problem Inputs float theta // input - angle (radians) of elevation float distance // input - distance (ft) to target float velocity // input - projectile velocity (ft/sec) Problem Outputs float time // output - time (sec) of flight float height // output - height at impact
Computers and Technology
1 answer:
Citrus2011 [14]3 years ago
7 0

Answer:

#include <stdio.h> #define Gray 32.17 /* gravitational constant */ #include <math.h> /*cos definition*/ #define PI 3.14159265

int main(void) double Theta; /*input-angle(radians)of elevation*/ double Distance; /*input-distance (ft) to target */ double Velocity; /*input-projectile velocity (ft/sec)*/ double Time; /* output-time(sec) of flight*/ double Height; /*output-height at impact*/

printf("Enter Distance> "); scanf("%f", &Distance);

printf("Enter Radians> "); scanf("%f", &Theta);

printf("Enter Velocity> "); scanf("%f", &Velocity

Time = Distance / (Velocity * cos(Theta*PI/180.0) ) ;

Height = (Velocity *sin(Theta*PI/180.0)*Time) - Grav*(Time* Time) );

printf("The time of flight is %.3f seconds.\n", Time); printf("The height at impact is %.3f feets.\n", Height);

system("pause");

return (0);

You might be interested in
Write an expression whose value is the concatenation of the three strigs name1, name2, and name3, separated by commas
krek1111 [17]

Answer:

name1+","+name2+","+name3

Explanation:

Given

name1, name2 and name3

Required

Concatenate, separated by comma (,)

To concatenate, we simply use the + operator.

So, the expression is:

name1+","+name2+","+name3

3 0
3 years ago
If your earning potential is higher than the cost of your higher education,<br> you will have a
igor_vitrenko [27]

Loans take for Higher education does have a positive ROI because you are building skills and work experience that can increase your future earnings.

If your earning potential is higher than the cost of your higher education,

you will have a positive return of investment.

  • The more education is linked with higher lifetime. Based on U.S. Bureau of Labor, college graduates earn an average of 61% more than non-college graduates.

The likelihood of earning more income over the course of a lifetime with a college degree is the main factor in considering if or not to pursue a diploma.

The higher income that is gotten from a college degree is known as the "college wage premium."

Learn more from

brainly.com/question/21069873

7 0
3 years ago
Who is maintain data and time of computer?​
stich3 [128]

Answer:

Explanation:

Data servers like ntp pool dot org give free time data to many Linux computers. Windows computers use the Microsoft Time Servers. So it depends on which computer, its operating system, and which server it chooses to use.

NTP server stands for Network Time Protocol

7 0
3 years ago
In half-wave rectification process, Vi=
Brut [27]

Answer:

the right answer is

(b.) Vm

8 0
3 years ago
Q) Look at the code sequence and select the correct output
zimovet [89]

Answer:

D.

Explanation:

8 0
2 years ago
Other questions:
  • In Microsoft Excel graphs are referred to as ______?
    14·2 answers
  • In two or more complete sentences, summarize the difference between renewable and nonrenewable resources? Justify your responses
    13·2 answers
  • 1. Which of the following is a drone? (1 point)
    10·1 answer
  • Before his job interview, Shabnam took the time to carefully wash and iron his best khaki pants and a button-down shirt. He even
    15·2 answers
  • vehicles power system is disabled as the result of a collision, can an ACN system using a paired cell phone work to notify a PSA
    7·1 answer
  • Will my ethernet adapter stop eveyone from getting WiFi if connected to my laptop ?
    5·1 answer
  • To which of these options does the style in Word apply? Select three options.
    7·1 answer
  • List how much hard disk capacity you recommend, and write a sentence explaining why.
    8·1 answer
  • This is the area that displays icons representing open applications.
    15·1 answer
  • Get ready to be the Quizmaster! You are going to design your own Python game show in the style of a quiz.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!