Patrecia Sampson
Thomas Saunders Secondary School
School code: 1500270560
Table of contents
1. Defining of Problem 1
2. IPO Chart of Problem 1
3. Declaration of Variables for Problem 1
4. Algorithm for Problem 1(Pseudo Code)
5. Pascal Program for problem (Step by Step Correction of Errors) Screen Shot
6. Compilation of the Pascal Program (With Successful) Screen shot of the Whole Pascal Program
7. Printing of Pascal Program in Microsoft word
8. Print out Dataset Given By teacher
9. Execution of the Pascal Program using the dataset given by the teacher and screen shot of each page with execution
10. Defining of Problem 2
11. IPO Chart of Problem 2
12. Declaration of the variables for Problem 2
13. Algorithm(Pseudo Code) for Program 2
14. Trace table for Problem 2 detailed execution (Dry run)
Defining the problem
The program accepts the last names and first names of 10 participants/attendees (presenters and participants), their airfare, their transportation cost and hotel charge. The name of the country that the attendees are from is determined by the airfare. The program determines the total number of attendees from each country, total airfare, transportation cost and hotel charges for each country. It then prints the name of the attendees as well as from which country they belong. It also prints the Grand-Airfare-cost, Grand-Transportation-cost and Grand-Hotel-charge.
IPO Chart
Input
Processing output 1. Last Names
2. First Names
3. Airfare cost
4. Transportation cost
5. Hotel Charge
1. Get Last Names, First Names, Airfare cost, Transportation-cost and Hotel charge
2. Find the number of attendees from each country.
3. Find the total number of attendees from each country, total airfare, transportation cost and hotel charges. 1. Print Last Names, First Names, Name of Country, Grand-Airfare-cost, Grand-Transportation-cost and Grand-Hotel-charge.
Declaration of the variables
Name of the Variable
Data type of the variable