Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A) Modify Project 9 program so that the program is split into three source files and two header files. B) Write a makefile to build

A) Modify Project 9 program so that the program is split into three source files and two header files.

image text in transcribed

B) Write a makefile to build the roster program on student cluster. The makefile should contain the following rules:

image text in transcribed

Code from project 9:

image text in transcribed

image text in transcribed

image text in transcribed

1) Put all functions related to operations on the list of equipments into equipment.c 2) Create a header file named equipment.h that contains struct equipment declaration and prototypes for the functions in equipment.c. The header file should enclose the contents of the header file in an #ifndef- #endif pair to protect the file. 3) Put the read line function is in a separate file named readline.c 4) Create a header file named readline.h that contains a prototype for the read line function. The header file should enclose the contents of the header file in an #1 fndef-#endif pair to protect the file. 5) group_equip.c contains the main function. 6) Include appropriate header files in the source files

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions