subject

Open the file named "1234-as4input. txt" for reading. Open the file named "1234-as4output-yourlastname-yourfi rstname. txt" for writing. For instance, my test implementation will open 1234-as4output-doe-john. txt.
Input

From the input file, read:
A title line of text.
Two ordered pairs (x1, y1) and (x2, y2) of floating-point numbers. Each pair will be on one line, separated by a comma, enclosed in parentheses. You'll need to use either fscanf(), or fgets() with sscanf(), to decode these pairs.
An integer count n.
A set of n floating-point numbers, one per line. n will be less than 50.
Computation
Treat the two ordered pairs as points, and determine the slope and intercept of the line they lie on.
Treat the number set read from the file as an array of x coordinates. Compute the y coordinate of the line for each x coordinate, and store the result in an array.
Output
To the output file, write:
The title.
The original ordered pairs, and the slope and intercept computed from them.
All five sets of results, with a descriptive line before each. Include the x coordinate and the computed y value. Line up the x and y coordinates on their decimal points.
The Catch
You don’t know how many x coordinates you have until you read the file.
You'll need to use arrays to store the coordinates, use pointers to pass the coordinates, and use array-length variables to tell the functions how many you have. Be careful!
Attacking the Problem
Don't try to attack this entire program all at once. You'll fail. You need to apply the divide-and-conquer approach to problem-solving. In this case, that means:
Deal with opening and reading the input file. After that, use ordinary printf()'s with ordinary for loops to convince yourself that you've captured all the input from the file.
Deal with the calculations. Write them one at a time. Use ordinary printf()s with ordinary for loops to test each one, making sure that you're getting the results correct.
Deal with opening and writing to the output file.
Your code must compile without errors or meaningful warnings, and run with any reasonable inputs. You must follow all coding conventions that we've established. Submit only the .c file here.
Notes
Use functions wisely.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
Answers: 1
You know the right answer?
Open the file named "1234-as4input. txt" for reading. Open the file named "1234-as4output-yourlastn...
Questions
question
Mathematics, 12.06.2021 18:00
question
Mathematics, 12.06.2021 18:00
question
Mathematics, 12.06.2021 18:00
question
Mathematics, 12.06.2021 18:00
question
Physics, 12.06.2021 18:00
Questions on the website: 13722363