Question: Help with this programming assignment please? Uses Linux, Files, Dynamic Memory Allocation, Modular Design, Separate Compilation, and Makefile. Use C++. You should assume that there
Help with this programming assignment please? Uses Linux, Files, Dynamic Memory Allocation, Modular Design, Separate Compilation, and Makefile. Use C++.




You should assume that there will be an object file named "foreignsub.o which implements a function whose prototype is given in the header file "foreignsub.h". The header file "foreignsub.h" consists of the following line. int sub int n int *A, int B, int *C); However, you do not know what this function does exactly. For your testing purpose, you may produce such a function, e.g., returning the maximum value among the 3n integers in the three arrays. You are also given an ASCII file named "input.txt". The first line of this file contains an integer n. There are n additional lines in the file, where the ith additional line contains three integers ri, yi, and zi. A sample of "input.txt" is the following. 1 2 3 4 5 6 7 89 10 11 12 13 14 15 You need to write a driver that does the following Open an input file (for reading) named "input.txt You program should output an error message and stop, if the file cannot be opened for reading. Read the first integer in the file into an integer var named n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
