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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started