0 Data Structures - Project No. 1 1. Description of the problem 2 0.65 5 0.9 0 0 0 The main objective of This project is
Posted: Sat Nov 27, 2021 10:41 am
company you work for. The manager asked to design a program that manages the materials that the company sells to customers and to make different accounts, which we will mention later. 0 What is required is to create a two-dimensional array3*3 Type of float. The program must 1- Asking about the required quantity for the first and second articles, and the required quantity of each substance is stored in (rowl, column1) And (Tow2, column2). 2- Store material prices in (rowl, column1) And (Tow2, column2). After entering the data by the user on the program calculate the following a. The sum of the materials that will be processed and the result stored in (row3, column3) b. Calculate the total price for each item and store the result for the first item in (rowl, colum3) And the second article in (Tow2, column3) c. Calculate the total amount for each list and store the result for the items in(row3, colum3) No. unit price total item 1 0.65 1.3 item 2 total d. The function prints the result as shown in the following image: 2 5 7 0.9 0 4.5 5.8 3- After printing the above result on the program, calculate the following a. The largest amount of materials was requested and the result was stored in (row3, columl). b. The least amount of materials was requested and the result was stored in (row3, colum2). c. Purchase rate per For items that have been sold and the result is stored in (row3, colum3). unit price total item 1 item 2 total No. 2 5 5 0.65 0.9 2 1.3 4.5 2.9 2. the design It is best to design the program in an organized manner using functions for each request in the program with a comment on each function that includes a description of each function and the work it does. 3. Execution The program should display a list as in the example below asking the user what he would like to do: Insert your items into the array. Calculate total number of items inserted - Calculate the total price of the whole inventory. - Calculate the maximum number of items requested. - alcul the minimum number of items requested -- Calculate the average price for the whole inventory. -7 Print the curent results. -Y Exit A
0 Data Structures - Project No. 1 1. Description of the problem 2 0.65 5 0.9 0 0 0 The main objective of This project is to learn the use of two-dimensional matrices. Your task in this project is to use the capabilities of matrices in managing an accounting program requested by the manager of the