Pascal Program
Pascal Program
Program Ashawny_Distribution_Limited;
{This Program was Created all sales and income for the Stakeholders}
Const
Num_of_Mag = 25;
Quantity_200 = 0.1;
Quantityg_200 = 0.2;
Var
Mag_C :String;
Mag_T :String;
Mg_T :String;
Quantity :Integer;
Unit_C: Real;
Sales: Real;
P_To_P: Real;
Client_C :Real;
D_Income: Real;
CounterDecor: Integer;
Begin
P_To_P:= 0;
Count:= 0;
Counter:= 0;
WriteLn ('My Program is to calculate all sales and payment amount for my company');
WriteLn
('~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@
~@~@~@~@~@~@');
WriteLn;
CounterComp:= 0;
CounterFashion:= 0;
CounterSport:= 0;
CounterDecor:= 0;
CounterHome:= 0;
Counter:= Counter + 1;
Begin
WriteLn;
WriteLn (' Enter your Magazine Code');
ReadLn (Mag_C);
WriteLn ('Your Magazine should belong to one of the following type: Computer, Fashion, Sports, Home
or Decorating');
WriteLn;
WriteLn;
ReadLn (Quantity);
ReadLn (Unit_C);
ReadLn (Sales);
ReadLn (P_To_p);
ReadLn (Client_C);
ReadLn (D_Income);
Else
Client_C:= Quantity*Sales
End;
begin
Unit_c:= 100;
Sales:= Quantity*Unit_C;
End;
begin
Unit_c:= 112 ;
Sales:= Quantity*Unit_C;
End;
begin
Unit_C:= 134;
Sales:= Quantity*Unit_C;
End;
begin
Unit_C:= 105;
Sales:= Quantity*Unit_C;
End;
begin
Unit_C:= 167;
Sales:= Quantity*Unit_C;
CounterComp:= CounterComp +1
end
begin
Unit_c:= 100;
Sales:= Quantity*Unit_C;
WriteLn (counter);
End.
begin
Unit_c:= 112 ;
Sales:= Quantity*Unit_C;
End;
WriteLn (counter);
End.
begin
Unit_C:= 134;
Sales:= Quantity*Unit_C;
End;
WriteLn (counter);
End.
begin
Unit_C:= 105;
Sales:= Quantity*Unit_C;
CounterComp:= CounterComp +1;
End;
WriteLn (counter);
End.
WriteLn;
WriteLn;
end.