1. (Required) Design a structure for a product, including id (integer type), product name (char*), and price (float). Assign data for five products. Then output the ID, product name and price of the highest priced product (Using structures). For example input: 1 book 20.0 2 table 150.0 3 cup 18.0 4 lamp 32.0 5 pencil 5.0 $./a.exe The highest price product is 2 table 150.0
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!