Details of the parts stored in stock include the following attributes: name, quantity, value of one part. Make a program to solve the following tasks:
- Calculate the total cost of the part.
- Calculate which parts are in the greatest quantity and which in the smallest.
- Display information on the availability of parts of the same type and its quantity.
Help, please, solve this problem for the Console Application (Delphi) Sketched something, but it did not work
program Project2; {$APPTYPE CONSOLE} uses SysUtils; type detal = record a: string[30]; kol, st: integer; end; var a: array [0..99] of detal; n, i, max: integer; begin { TODO -oUser -cConsole Main : Insert code here } write('Kollichestvo detaley '); readln(n); for i:=0 to n-1 do With a[i] do begin write('informacia ob ', i, ' detali: '); readln(a); readln(kol); readln(st); end; max := 0; for i:= 1 to n-1 do if a[max].kol*a[max].st < a[i].kol*a[i].st then max:=i; writeln('iskoma9 detal: ', a[max].a, ' stoimostiu ', a[max].st, ' v kolichestve ', a[max].kol); end.