Inventory Number InventoryDescription InventoryQuantity Unit Price 1234 Ladders
ID: 3612955 • Letter: I
Question
Inventory Number InventoryDescription InventoryQuantity Unit Price
1234 Ladders 900 250.00
4578 Hammers 800 40.00
9101 Screws 20 60.00
Write a c program that will allow the user a number of choicesto process and view the information.
The main program should allow the user to enter one of fivechoices
Choice One: Show all of the records in thefile, including the Inventory Number, Inventory Description,Inventory Quantity, Unit Price, as well as the Total InventoryValue (Inventory Quantity times Unit Price) of each product.
Choice Two: Show all of the records in thefile in which the inventory quantity is equal to or less than800. Additionally, show the Inventory Number, InventoryDescription, as well as the Total Inventory Value (InventoryQuantity times Unit Price)
Choice Three: Show all of the records in the file in whichthe inventory quantity is greater than 800. Additionally, showthe Inventory Number, Inventory Description, as well as the TotalInventory Value (Inventory Quantity times Unit Price)
Choice Four Show the total inventory value of all ofthe records in the file.
Explanation / Answer
please rate - thanks #include #include #include using namespace std; struct inventory{ int code; char item[10]; int amount; float price; } items[50]; float getvalue(inventory[], int); void view(inventory[], int,int); int main() {int num,choice,i,c; float total; printf("How many items in the inventory? "); scanf("%d",&num); for(i=0;iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.