Question: Please write in C Program using printf and scanf; The value function returns the total value of the toys in the array. The small function

Please write in C Program using printf and scanf;
The value function returns the total value of the toys in the array.
The small function returns the total number of small boxes.
The medium function returns the total number of medium boxes.
The Large function returns the total number of large boxes.
Menu options:
Option A: To add a toy to the bag, the user is asked for the length, width, height, and weight of the bag. The
function size, check_capacity, and weight are called to determine if the box can be added. If it can be added,
then the user is asked for the value in dollars (no cents) and the next available array location(row) will be
populated with the size(as returned by the size function), weight, and value.
Option V: call the function value on the array and display the return total value in main.
Option W: call the function weight on the array and display the return total weight in main.
Option D: ask the user for a toy number, use the delete function to attempt toy deletion, output a message in
main stating weather deletion is successful or not.
Options M,N, and L are similar to V and W.
Option X: call function wipe and then ask the user for a bag number and pass as argument to function populate.
Enter option x first every time you start the program too.
Option P: exit program.
Please write in C Program using printf and scanf;

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!

Q: