By DePaul Dimadis
Choose your prefered Language: greek_flag uk_flag

Write a program to manage a table named product and product type as defined below:
struct description

{
int category;
int code;

};
struct product

{
struct description d;
int quality [12];

int production [12];

};
Each item in the table contains the monthly outputs of a product (production table [12]) together with the corresponding production designation from the quality control (one of the numbers 1, 2, 3, 4) - (quality table [12]).
The program should include functions for:
iv. importing 10 product data into the table products (data_entry function).
v. the display of the table products in rows (1 row for each product) (data_display function).
vi. (in the main () function of the total annual production quantity of each product with quality control 1, 2, 3, 4 (ie for each product four total annual values ​​have to be found and displayed - one for each 1, 2, 3, 4), (find_total function)
vii. find and display (in the main () function of the product with the highest percentage of production with qualitative control 4. (max_fail function)
The functions will be called consecutively by the main () function.