Question: Programming Assignmen... EGRE 2 4 5 Engineering Programming Fall 2 0 2 4 Mark Schwitzerlett Programming Assignment # 3 : Credit Card Debt Report 1
Programming Assignmen...
EGRE Engineering Programming
Fall
Mark Schwitzerlett
Programming Assignment #: Credit Card Debt Report
Overview
Write a C program to search three parallel arrays containing customer credit card debt information. The program will identify statistics such as the number of customer names that begin with S the number of customers with no debt, and the number of customers that live in a specific state.
Your program should
Read data from the CustomerData.dat file using the provided ReadData.c code. The read data creates a function you will need to use in your program.
You will need to include the string.h library.
Call the function that reads data from a text file and fills three parallel arrays with customer names, state of residence, and amount of credit card debt for each customer. Using a function is a convenient way to fill arrays with hundreds of elements.
Request the user input a debt limit integer first letter of customer's name char and state abbreviation stringNote: that the number of customers is already input during when reading in the arrays.
Execute a loop to process each element of the names and debt arrays to identify the customer with the highest debt.
Execute a loop to process each element of the names array to count all customer names that begin with the specified letter. Ex: How many customer names begin with B or L
Execute a loop to process each element of the names and debt arrays to count the number of customers that have debt higher than the specified debt limit and the number of customers that have no debt.
Output all results for both the US and the state: report headers both US and state number of customers, the person's name with the highest debt, number of customer names that start with the specified letter, number of customers with debt over the input limit and the number of debt free customers.
Code Documentation
The very first lines in all of your programming project files this semester should be comments in the class header file copy from header.c Of course, the items in the square brackets in the comments should be filled in with the proper information.
In addition, the first output for all of your projects this semester, both for the lab exercises and the programming assignments, should be the name of the project and your name, eg:
printfProgramming Assignment # Joe Student
;
Your code should meet all the stylistic requirements we have discussed in class including the appropriate
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
