Question: Write a program with one user function. Create a struct recruiting. The struct has char array of size 16 (service) and an unsigned integer (recruits).

Write a program with one user function. Create a struct recruiting. The struct has char array of size 16 (service) and an unsigned integer (recruits). Create an array of structs size 6. Create a file pointer. Read in the information in the data file Recruiting.txt and fill-in the array of structs. Call user function one.Function one: Pass the array of structs and its size to the user function. The function will return nothing.Print the output as shown below. You will need to calculate the % of total recruits.Service Recruits % of Total Recruits// headerArmy 7234xx.xxNavy 5200 The service with the most Recruits is(Service with most recruits).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!