Comp Sci 1 - Pascal

WEEK

Today
Semester One
"Science is supposedly the method by which we stand on the shoulders of those who came before us. In computer science, we all are standing on each others' feet."
G. Popek.
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY

Sept 5

No School

Labor Day

Sept 6

New Oly Day

Sept 7 Day 1

Class Rules

Team work assignment

Sept 8 Day 2

Finish Intro Activity

Intro Syllabus
What to Expect
Programming Enviro
Header for all programs

Create header.pas

Sept 9 Day 3

create simple.pas

Tech2 login - server organization

How to do basic output

Sept 12 Day 4

Basics of Computer - folder organization

Check simple.pas

begin sum.pas (basic input, output, manipulation)

Sept 13 Day 5

Check sum.pas

Now have it subtract, mutiply and divide

Sept 14 Day 6

Look over issues

Talk about integers

Finish sum.pas (due next time)

Sept 15 Day 7

Turn in sum.pas

Let's go over some formatting

Sept 16 Day 8

begin work on name, age

Goal of programming

six types of statements

Work on name, age

 

Sept 19 Day 9

Open nameage.pas

Give students some time to get basic input done

Talk about if statements

 

 

Sept 20 Day 10

work on nameage

Have ready to turn in at beginning of period next time

error checking - intro getint

Sept 21 Day 11

Turn in nameage

How can procedures make my program better? Procedure Intro - we will build a program with 4 procedures - some with passing - some without

text manipulation

 

Sept 22 Day 12

Start of period: work on text manipulation

quiz review

Work more with getint

more with text manip

 

Sept 23 Day 13

Work more on practice.pas

Make up work day???

 

Sept 26 Day 14

What is the secret of success?

Build first part together
How do you play a guessing game? (this should all be in procedures)

Review if ... then - intro else

Sept 27 Day 15

Wouldn't it be nice to be able to make more than one guess?

How do we do this?

 

 

 

Sept 28 Day 16

Quiz

Work on guessing game

Above and Beyond idea - add betting, change criteria?

Sept 29 Day 17

Error Checking - Get Int - you will use this for almost all of your programs

Intro delay

 

Sept 30 Day 18

Work on Guessing Game

Have someone test your game - put their name and suggestions in documentation.

TOP

Oct 3 Day 19

Get sample code - follow instructions

Review Repeat... Until

Tests with multiple conditions

Oct 4 Day 20

Give students code they need to write using repeat until and if...then

I will check at the beginning of period next time

Oct 5 Day 21

Check code

Talk about counters - how to use a for..do loop

Oct 6 Day 22

Add to previous program - for ... do loop

Oct 7 Day 23

Discuss Quiz - how to redo...

Any time left - work on make up work

Oct 10 Day 24

Start new file

Talk about Header - have GetInt - Intro - resave header

Now save as FtoC - start the basics of code

Oct 11 Day 25

Talk about getting a table of output

Do this using procedure

What else could we do

Oct 12 Day 26

Work on FtoC

What should this look like?

Above and Beyond Ideas

  • Add in more elements - C to F
  • Give user a choice of which way to convert
  • Add in Kelvin
  • Give user choice to pick start and stop values
  • Be creative and come up with your own options

Are you doing this in procedures?

Time to work on program

 

 

Oct 13

GRADE DAY

end of 1st six weeks

 

Oct 15

GRADE DAY

Statewide Inservice

Oct 17 Day 27

Assign next part of program

Make a table with first column being Fahrenheit temps & second column is the equivalent Celcius temp. Table should go from 0 to 200 Faherheit.

Above and Beyond Ideas

  • Add in more elements - C to F
  • Give user a choice of which way to convert
  • Add in Kelvin
  • Give user choice to pick start and stop values
  • Be creative and come up with your own options

Are you doing this in procedures?

Time to work on program

Oct 18 Day 28

Time to work on program

Take Survey

 

Oct 19 Day 29

Finish Up FtoC

Work with for..do loops - click here for information

Turn in tomorrow

 

 

Oct 20 Day 30

Give final start and stop value of temperatures

Get it to fit on one screen - if it doesn't - then give user a chance to read and then continue.

Turn it in by the end of the period.

 

Oct 21 Day 31

Begin work with Graphics

 

 

 

 

 

TOP

Oct 24 Day 32

Dummy - Slides - Back

Step 2 - Graphics

Look at help file

Work on Logo

Oct 25 Day 33

Work on Logo

Some ideas - what have students done in the past

Oct 26 Day 34

Work on Logo

Move this to a procedure

Oct 27 Day 35

Do a Walk about

Work on Logos

Oct 28 Day 36

Final Day to work on logo

Make sure it is in a procedure

Oct 31 Day 37

Begin work on Payroll program

Payroll Program

Input:

  • Employee Name
  • Hours Worked
  • Hourly Wage

Output:

  • Gross Pay
  • State Taxes
  • Fed Taxes
  • SS
  • Net Pay

All done in procedures

Nov 1 Day 38

Work on payroll

Nov 2 Day 39

Windows Demonstration

See if you can start to transition Payroll into this

 

Nov 3 Day 40

Work on Payroll with windows

Remember that the last window called is the "active" window

Does your program handle multiple employees?

Above and Beyond Ideas:
- Does your program handle overtime?
- Can it actually store multiple employee information?
-Have all boxes on the screen at once and just fill in one at a time - when you start a new employee - the screen clears all the boxes (but the boxes are still there)

Nov 4 Day 41

Work on payroll with windows

We will turn this in on Monday

Did you test it with your logo?

See if you can figure out how to take getInt and make it into getReal?

Have someone else run your program and give you suggestions.

  • Make sure it has your logo in it (as a procedure)
  • Procedures are documented
  • It is thourougly tested

 

Nov 7 Day 42

Work on Payroll

Turn in Payroll Program

 

Nov 8 Day 43

Output a menu
5 choices (characters)

Make each choice do something

Nov 9 Day 44

If you are not done - finish menu

Talk about testing statements

Nov 10 Day 45

Another way to do if... then.. else statements

Change your menu program

 

Nov 11

No School

Veteran's Day

 

TOP

Nov 14 Day 46

Remind students about GetInt - Now lets look at GetReal

Nov 15 Day 47

Let's start a game together - we will do the algorithm

Nov 16 Day 48

Work on basic game

Nov 17 Day 49

Now let's add betting

Nov 18 Day 50

Work on game

Nov 21

NO SCHOOL

GRADE DAY

end of 2nd six weeks

Parent Conferences

Nov 22

NO SCHOOL

Parent Conferences

Nov 23

No School

Nov 24

No School Thanksgiving

Nov 25

No School

Nov 28 Day 51

Work on Game - What is required

Talk about Menu Idea

Above and Beyond Ideas

Nov 29 Day 52

Test Each other's games

Get it ready to turn in

Nov 30 Day 53

Test Each other's games

turn in

Dec 1 Day 54

Sorting

  • Dummy
  • Slides
  • Back

Build together the start of program:
1. User can enter 5 numbers
2. Display the 5 numbers
3. Add the 5 numbers

Give time to work on program

Dec 2 Day 55

Time to work on 5 numbers

Dec 5 Day 56

Arrays -

  • What is an array?
  • Where can we use them?
  • How to pass to procedure
  • How to define

Change our list to arrays

Dec 6 Day 57

More work with arrays

Dec 7 Day 58

Work with Array program

Click here for some notes on Arrays.

Add sorting to menu

 

Dec 8 Day 59

Click here for notes on Array menu program and sorting.

 

Dec 9 Day 60

Work on menu, sorting, what else can you do?

Dec 12 Day 61

Click here for notes on Sorting, Adding items in array. You may resave this file as *.pas and open in pascal - or open the .txt file directly and copy and paste into your program.

Dec 13 Day 62

Talk about sorting, find sum, average, and within 5

Work on Array Program

Text Manipulation

Dec 14 Day 63

Work on programs

If you are all done - and have done some above and beyond - Research Records - how to implement in Pascal - either add information to your code or start a new program. You can also research some other ideas as well.

Dec 15 Day 64

Work on programs

Dec 16 Day 65

Work on programs

Turn in Array Program

Dec 19

NO SCHOOL

Dec 20

NO SCHOOL

Dec 21

NO SCHOOL

Dec 22

NO SCHOOL

Dec 23

NO SCHOOL

Dec 26

NO SCHOOL

Dec 27

NO SCHOOL

Dec 28

NO SCHOOL

Dec 29

NO SCHOOL

Dec 30

NO SCHOOL

Jan 2

NO SCHOOL

 

Jan 3 Day 66

Quick Programs

Moving Text

Jan 4 Day 67

Quick Programs

Moving Text

Jan 5 Day 68

Quick Programs

Moving Text

Jan 6 Day 69

Quick Programs

Find sum of series

Count the vowels

Jan 9 Day 70

What is a record?

Why use them?

How to build them?

Jan 10 Day 71

Work with the Records program we created yesterday (go to files to copy if you need it - recordde.pas)

Alter this to store information you want (change name, age and GPA to create your own database)

Change anything in your program impacted by this change - (ie. - anywhere you mention age - should be whatever you have in your record)

Transition this to arrays -(make a new type - array of records) - we will want at least 10 items in the array (make a variable called MAX - set it to 10 for now).

Don't change your procedures to make this work with arrays - either write new procedures - or make the needed change in your main body.

If you have this all done - work on program from last friday - (Have someone type in a string - count vowels in string - or work on bounce.)

Jan 11 Day 72

Work on Records Program

Jan 12 Day 73

Work on Records Program

 

Jan 13 Day 74

Work on Records Program

Turn in today??

Jan 16

NO SCHOOL

MLK DAY

 

Jan 17 Day 75

2 Hour Delay

LAST DAY FOR MAKE UP WORK

Jan 18 Day 76

Work on Practice Final

Talk about Final

 

 

Jan 19 Day 77

Go over questions and concepts from Practice Final Exam

Jan 20 Day 78

No School

Inclement Weather

Jan 23 Day 79

Work on practice final

 

Jan 24 Day 80

Talk about practice final

Jan 25

Finals 1 - 2 - 3

Jan 26

Finals 4 - 5

Jan 27

Finals 6 - 7