Question: Please, C code 7.6 Ch 7 Warm up: Online shopping cart (C) (1) Create three files to submit: Item ToPurchase.h Struct definition and related function
Please, C code
7.6 Ch 7 Warm up: Online shopping cart (C)


(1) Create three files to submit: Item ToPurchase.h Struct definition and related function declarations Item ToPurchase.c - Related function definitions main.c main() function Build the Item ToPurchase struct with the following specifications: the temToPurchase struct Data members (3 pts) o char itemName [] o int itemPrice o int itemQuantity Related functions o MakeltemBlank0 (2 pts) Has a pointer to an Item ToPurchase parameter. Sets item's name-"none", item's price = 0, item's quantity = 0 o PrintltemCost() Has an Item ToPurchase parameter. Ex. of PrintltemCost) output: Bottled Water 10 @ $1 = $10 (2) In main), prompt the user for two items and create two objects of the Item ToPurchase struct. Before prompting for the second item, call flush(stdin); to allow the user to input a new string. (2 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
