Professional Documents
Culture Documents
Group 4 IT Pascal
Group 4 IT Pascal
For x:=1 to 20 do
Step 1: START
Display User ID
Display User Ln
Display User Fn
Display Date
Display Description
Display Accom
Display Trans
Display Meals
Display Phone
Display Entertainment
Display Total
Display Total Expense
Copy showing steps of Pseudocode
Picture showing name of group members, school, date and Name of the program
Picture showing beginning of While loop and Section initializing variables
Picture showing Write line asking for use information and Read lines reading user input
Picture showing the calculation of total and total expense, the If statement and output of information
inputted into program
//Jaden Williams, Zepheniah Raja France, Camron Williams, Marlon Scott, Jeremy Brown
//Date - 2022-2023
program Blue_bills;
var
//Declaring variables
x:integer;
User_ID:integer;
User_LN:string;
User_FN:string;
date:integer;
description:string;
accom:real;
trans:real;
taxes:real;
fuel:real;
meals:real;
phone:integer;
entertainment:real;
Total:real;
total_expense:real;
salary:real;
allowance:real;
income:real;
gross_income:real;
net_income:real;
begin
begin
x:=0;
User_ID:=0;
User_LN:='';
User_FN:='';
date:=0;
description:='';
accom:=0;
trans:=0;
taxes:=0;
fuel:=0;
meals:=0;
phone:=0;
entertainment:=0;
total:=0;
total_expense:=0;
salary:=0;
allowance:=0;
income:=0;
gross_income:=0;
net_income:=0;
readln(allowance);
readln(salary);
readln(User_ID);
readln(User_LN);
readln(User_FN);
readln(date);
readln(description);
readln(accom);
readln(taxes);
readln(fuel);
readln(meals);
readln(phone);
readln(entertainment);
total_expense:=total+accom+trans+taxes+fuel+meals+entertainment;
gross_income:=salary+allowance;
net_income:=gross_income-total_expense;
writeln('cutback')
else
writeln('normal');
//Loop is ended
end;
//Program is ended
end.