Question: Programming 1 - Program 9 With this assignment you will start to learn how to write a practical menu driven program that manages a list

Programming 1- Program 9
With this assignment you will start to learn how to write a practical menu driven program that manages a list of data. You will use an array of structs to organize the data and you will save information in a text file.
The focus (topic) of your program customer.
This assignment will add features to the Lab 9 Session 2 assignment.
The Menu commands:
A....Add a customer to the Inventory
P....Print the information for one customer
V....Print all the Valid customers onto the screen
C....Create a current report of all the customers Valid and Invalid (save it to a file)
I .... Make a customer Order Invalid
E... Print all the orders with an amount above a certain value
T... to calculate the total and average of all the VALID orders
Q....Quit
You will use structs and an array to organize the data in the program. Your struct must contain at least the following information:The array, count, and character for choice will be declared in mainThe while loop will be in main with the function calls to:(1). Greeting(2). Fill with five customers(3). Get the choice (initialization and update for the while loop)(4). Process the choiceThe inventory order numbers will be in order, the first order number at index 0 will be order number 1(one)All orders will be initialized as valid - vaildOrder will be set to ' V 'If an order is cancelled, it will not be removed from the list the - validOrder will be set to 'I'When you add new item the program will ask the user for each of the fields on a separate line.To print the information for one customer have the user enter the order numberWhen you display orders on the screen, all of the information stored for each entry will be labeled and displayed
When you display orders on the screen, all of the information stored for each entry will be labeled and displayed.
To print all the orders with an amount above a certain value, have the user enter the value and search through the array and only print the inventory records with an amount anbove that value
Creating a current inventory report copies the current entries in the array to an output file. This must include labeling all of the information so that it is clear what information is being provided.
Instructions:
Use the programmer-defined functions described below (plus main) to appropriately break the problem up into smaller pieces.
Your program must start up with at least 5 valid records. These records must be "hard coded" into your program. (This must be done in one of your functions)
You should use function prototypes and NO global variables (penalty)
You should use a #define to set the upper bound of the list to 50 entries.
Your code should be well designed, well commented and written with good style.
Other Important Hints and Reminders:
Start work on this as soon as possible.
It is your responsibility to request this help in the form of specific questions.
When you ask a question, it should be specific, and you should provide the current version of your code.
The current version of your code should be neatly formatted and commented. It should also be properly indented with meaningful variable and function names. This will make it easier for anyone helping you to understand what you are trying to do.
Your character arrays DO NOT need to process white space, you can use scanf with %s with the space before %.
For example, assume the name of your array is inventory and you want to scan in the name: scanf("%s", inventory [count].OrderName); (CaptainAmerica) or (Captain.America) with no white space between the words.
Your assignments will be graded with input that does not have any white space between the words, if you want assistance to have input with space between the words please contact your instructor.
NOTE: there will be no guarantee of assistance with this assignment on the last few days before it's due so DO NOT leave this assignment to the last minute.
Function descriptions:
//Greets the user
//Fill the inventory with five customers
//Display the menu, ask, get, and return the user choice
//run the program menu (process the choice)//use if else conditions (or switch)
//print ONE customer information onto the screen
//print entire VALID customer inventory onto the screen
//prints a report to a file the entire customer inventory (valid and invalid)//
//Add a new customer into the inventory, fill the fields one by one with prompts
//make a customer order invalid (cancel the order- do not delete the record or change the order number)
//Tell the user the count in the list
//ask and get the order number from the user and set the 'V' to an ' I '
//Calculate the total and the average of all the valid orders
SAMPLE OUTPUT:
Welcome to the customer inventory program, please select an option from the menu
FIVE Valid customers have been added to the inventory.The total of all the valid orders is $23567845818,46 an
Programming 1 - Program 9 With this assignment

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 Programming Questions!