home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PASCAL
/
COST25SC.ZIP
/
PIZZA.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1992-03-22
|
1KB
|
50 lines
PROGRAM Pizza_Cost_for_the_STJPG;
VAR Pizza_Price,Total,Cost_per_member,TotalSlice,Members,Slices_per_member,Cost: INTEGER;
Group : String[10];
Item : String [10];
BEGIN
WRITELN ('What item is this report for?');
READLN (Item);
CLRSCR;
WRITELN;
WRITELN;
WRITELN;
WRITELN;
WRITELN (' ',Item,' Cost Figurer V 2.5');
WRITELN;
WRITELN (' From Solar SoftWorks');
WRITELN;
WRITELN;
WRITELN (' By Mark Wurtzler');
WRITELN;
WRITELN;
WRITELN;
WRITELN;
WRITELN (' Press Enter to Continue');
READLN;
CLRSCR;
WRITELN ('What group or organization is this report for?');
READLN (Group);
WRITELN ('This program will figure the cost of ',Item,' for each ',Group,' Member.');
WRITELN;
WRITELN ('Enter total ',Group,' Members....');
READLN (Members);
WRITELN ('What is the cost per ',Item,'?');
READLN (Pizza_Price);
WRITELN ('How many ',item,'s will all of you guys use a piece?');
READLN (Slices_per_member);
TotalSlice := Slices_per_member * Members;
Cost := Pizza_Price * TotalSlice;
Cost_per_member := Slices_per_Member * Pizza_Price;
WRITELN ('The ',Group,' will pay $',Cost,' for ',item,'.');
WRITELN ('');
WRITELN ('Each member owes $',Cost_per_Member,'.');
WRITELN ('Pay up guys!');
WRITELN;
END.