Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using the attached template please integrate the following instruction using C programming, not C++. Will upvote, code that closely corresponds with template only please. Develop
using the attached template please integrate the following instruction using C programming, not C++. Will upvote, code that closely corresponds with template only please. Develop and submit a " C " computer program that prints a list of double floating point numbers on the terminal, arranged by horizontal lines, according to several pieces of input information provided at run time. Each line should contain three numbers: a number for time " t ", x-position " x ", and y-position " y " for the motion of a projectile. For a given " t ", the position coordinates x and y are calculated from the following expressions: x=v0cos()t,y=v0sin()t9.812t2 Where v0 is the constant initial launch speed in m/s and is the constant projectile launch angle in radians. These two quantities as well as the initial time "t", the final time, and time interval must be provided by a user of the program at run time. The launch angle should be provided in degrees and then internally converted into radians. The function that prints the data should then return to the "main" the total number of rows of " t ", " x ", " y " data that were printed. This number should then be printed by "main" on the terminal. winclude estdio, hs *include sstdlib. hs winclude cnath.ho double provide input( vodd ) : void print,the list( double tinalitine) : Int madn(1nt arge, char "argull) : int mainfint argc, char *argu(l) f double rina1, tine : finat_time a provide_input() : frorintr( " I an in thain he*, Iisa.geterge ) : print_the_1ist f final_tine.) : return (0) : y double provide, input( void ) \{ double final_ tine : printef "Indtiat time is : 0. e n ) ; f/prantf( "The nunbers you entered are: Na sat. 11sa, aastif, lisa, gearge? printf( "Enter the final time: ") " scanf( "xlf*, afinal_time); printf("The tine yoe entered is:kur", final,ine) : printe("'") : returne finat time ): y void print_the_list( dooble final_time ) ( double tr, x3yi printf( " 4n) : printf( "Mere is your list'in") z print ( " 4n); printf("TIme(t) trx-positaon( (x) Iry-posdraan (y)); printf((a)] for (t=0,0;t on final_tien ; t nt+0,01)f. x=S.t= y=8,66+t4,905t=t= printf(" nn) : return
using the attached template please integrate the following instruction using C programming, not C++. Will upvote, code that closely corresponds with template only please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started