Question: Complete the search function that looks up the part in inv (an array of struct part). The function prompts the user to enter a part

 Complete the search function that looks up the part in inv

Complete the search function that looks up the part in inv (an array of struct part). The function prompts the user to enter a part number. If the part exists, prints the name and quantity on hand; if not, prints a "part not found" message. Parameter np contains the number of parts in the array Assume the structure part is defined as: struct partf int number; char name [31]; int on hand; )i void search (struct part invll, int np) add additional variable declarations if necessary int number; printf("Enter part number: ") scanf("%d", &number)

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