Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you please help me? With C program not C++! Thanks! Answer the questions below in a typed document, numbered appropriately. Print out this sheet

Can you please help me? With C program not C++!
Thanks! image text in transcribed
Answer the questions below in a typed document, numbered appropriately. Print out this sheet as a cover page. Bring the completed assignment to your next lab class. 1) Write a declaration statement for a 1-D array called timedata with a length of n, where n is a pre-declared integer variable. (In other words, n has already been declared in advance.) (Remember, you cannot initialize variable-length arrays in a declaration statement) 2) Write a declaration statement for a 2-D array called wavedata with a width of 2 and a length of 10 )Write the same declaration, but for a 2-D array with a width of 2 and a length of n. ) Write the declaration statement for a file pointer to represent wave data, and then write a file assignment statement for that pointer that opens a file, defined as a symbolic constant FILENAME, as a read file. 5) Write a for loop that will run a total of n times, and in each iteration will read three floating point values from the pointer declared in the last question, storing the first in the array timedata and the other two in the columns of the array wavedata. (Remember that arrays in c go from subscript (0) to (n-1 6) Write a for loop that will run a total of n times. Use this loop to add up the values of each column of wavedata, and then find the average of each column. 7) Write a statement that calculates the percent error between variables containing amplitude data for two separate waves A- B Percent Difference-EEI * 100% Percent Difference-IZ/TAN (475)

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago