Answer:
struct StockItem {
char supplier[50], productName[50];
int catalogNumber;
};
struct Customer {
char name[50], streetAddress[50], city[50], postalCode[50], phone[50];
};
struct Purchase {
struct Customer buyer;
struct StockItem itemSold;
struct Date dateOfSale;
struct Money paid;
bool returnable;
};
Step-by-step explanation:
- Create a struct named StockItem with required fields: char supplier[50], productName[50]; int catalogNumber;
- Create a struct named Customer with required fields: char name[50], streetAddress[50], city[50], postalCode[50], phone[50];
- Create a struct named Purchase with required fields: struct Customer buyer; struct StockItem itemSold; struct DatedateOfSale; struct Money paid; bool returnable;
};
* struct Date and Money is assumed to be created as specified in the question