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, checkcapacity, 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 locationrow will be
populated with the sizeas 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 and are similar to and
Option X: call function wipe and then ask the user for a bag number and pass as argument to function populate.
Enter option first every time you start the program too.
Option P: exit program.
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
