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);
Answer:
Click the Header Row option.
Explanation:
it has animation, but it does not have multimedia and only has text and no images
Answer:
Option b outFile.open("outputData.out");
Explanation:
In C++, there are several classes given to handle output and input of characters to or from files. They are:
- ofstream that write on files
- ifstream that read from files
We can use an object of ofstream to hold the contents that we wish to output to an external file. The general syntax is as follows:
ofstream_obj.open(file_name)
This will create a file with a specific file name and it possesses all the contents from the obstream_obj.