Declare a structure type named Product for the following records (data items): you must choose a name for each of its members: A product record consisting of: The product name (data type string) Identification number Price Given the following structure type definition: struct Info {int quantity; double unitPrice;}; Write a statement to declare (define) the structure variable item of the structure type Info. Write the statement(s) to read values into the member variables of the structure variable item. Write the statement(s) to compute the price of item (product of its member variables) and print it.
Ques 1
struct Product{
String name;
int identificationNumber;
int price;
};
Q2 a) Info item;
b) item.quantity =10;
item.unitPrice = 100;
c) int price = item.unitPrice * item.quantity;