SlideShare a Scribd company logo
1 of 7
Download to read offline
EXPLORING CIRCLES BY
USING COMPUTER
PROGRAMMING
Learning from pre-written computer programs is
more engaging and rewarding than hand
calculations and manual plotting
Jerry Sommerville
11/11/2013 1
Overview
• Purpose
• Demonstrate math concepts using computer programming
• Plan of Action
• Draw a smiley face with circles
• This demonstrates the behavior of a circle with offsets
• Use pre-written computer program to teach math ideas and simple
programming language features
• English and Music composition parallels
• Execution of Plan
• Explain math/language features in context of larger goal (smiley face)
• Learn how to dissect or experiment with program to understand steps
• Let the computer do the hard work
• Evaluation of Results
• Which method is more engaging and more intuitive?
• Presentation of Solution and Summary
11/11/2013 2
Plan of Action
• Language features
• Language has graphics
primitives (able to draw)
• Language is easy to
remember, intuitive
• ‘Apostrophe(Comment)
• STOP (Cease execution of
steps)
• SLEEP (Pause execution of
steps)
• Loop :
• For I = 1 to 5: Next I (Repeat
execution of steps)
• PSET(X,Y) [put a point on
the screen]
• SQR (Square root)
11/11/2013 3
Plan of Action
• Circle equation, x2 + y2=R2
• Circle equation with an offset (it is shifted to h, k position)
• (x-h)2 + (y-k)2=R2
• Where x, and y are variables (they change)
• Radius, R ,and offsets h and k are constants (they don’t change)
• Solve for y in terms of x
• y= k + SQR(R2-(x-h)2),
• y=f(x) , y is dependent upon x
• Put this equation in a do loop and change y by changing
x,
11/11/2013 4
Execution of Plan
• Run Entire Program
• Use comments to explain phases using apostrophe.
• Stop program to explain phases, use “STOP”
• Pause program using “SLEEP”
• Change constants and variables to understand trends
• Edit program to explore other functions and language
features
11/11/2013 5
Evaluation of Results
• When you compare manual (conventional) method vs.
computer assisted method
• Which method is more engaging?
• Which method is more intuitive?
• Which requires the most preparation time to teach?
• Which enhances programming skills better?
11/11/2013 6
Conclusions
• Computer program reduces the burden upon math
teachers to convey math concepts.
• It encourages the development of programming skills
because students see a purpose for them
• It teaches students to be purposeful (objective oriented)
while meticulous (detail oriented)
• CANVAS
• A term coined for this approach
• Computers, Algebra, Numbers, Visual Aids for Science (C.A.N.V.A.S)
• The computer screen is used like a canvas in art
11/11/2013 7

More Related Content

Similar to Exploring circles by using computer programming

Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenationAshwini Awatare
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechzShahbaz Ahmad
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai1
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai
 
PL Lecture 01 - preliminaries
PL Lecture 01 - preliminariesPL Lecture 01 - preliminaries
PL Lecture 01 - preliminariesSchwannden Kuo
 
Designing Object Oriented Software - lecture slides 2013
Designing Object Oriented Software - lecture slides 2013Designing Object Oriented Software - lecture slides 2013
Designing Object Oriented Software - lecture slides 2013Jouni Smed
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow chartsChinnu Edwin
 
A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...Cynthia Velynne
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxrockstarr066gj
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1 ITNet
 
ClipFlair Revoicing and Captioning Activities
ClipFlair Revoicing and Captioning ActivitiesClipFlair Revoicing and Captioning Activities
ClipFlair Revoicing and Captioning ActivitiesClipFlair
 
Student Pipeline to Open Source Communities using HFOSS
Student Pipeline to Open Source Communities using HFOSSStudent Pipeline to Open Source Communities using HFOSS
Student Pipeline to Open Source Communities using HFOSSAll Things Open
 
Rica lk 11.2015
Rica lk 11.2015Rica lk 11.2015
Rica lk 11.2015lkeisler
 

Similar to Exploring circles by using computer programming (20)

Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenation
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 
600Desc
600Desc600Desc
600Desc
 
600Desc
600Desc600Desc
600Desc
 
Chapter 1 java
Chapter 1 javaChapter 1 java
Chapter 1 java
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
Ppl 13 july2019
Ppl 13 july2019Ppl 13 july2019
Ppl 13 july2019
 
PL Lecture 01 - preliminaries
PL Lecture 01 - preliminariesPL Lecture 01 - preliminaries
PL Lecture 01 - preliminaries
 
Designing Object Oriented Software - lecture slides 2013
Designing Object Oriented Software - lecture slides 2013Designing Object Oriented Software - lecture slides 2013
Designing Object Oriented Software - lecture slides 2013
 
Cs 1114 - lecture-1
Cs 1114 - lecture-1Cs 1114 - lecture-1
Cs 1114 - lecture-1
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
 
A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptx
 
An introduction-to-programming
An introduction-to-programmingAn introduction-to-programming
An introduction-to-programming
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1
 
ClipFlair Revoicing and Captioning Activities
ClipFlair Revoicing and Captioning ActivitiesClipFlair Revoicing and Captioning Activities
ClipFlair Revoicing and Captioning Activities
 
Student Pipeline to Open Source Communities using HFOSS
Student Pipeline to Open Source Communities using HFOSSStudent Pipeline to Open Source Communities using HFOSS
Student Pipeline to Open Source Communities using HFOSS
 
Rica lk 11.2015
Rica lk 11.2015Rica lk 11.2015
Rica lk 11.2015
 

Exploring circles by using computer programming

  • 1. EXPLORING CIRCLES BY USING COMPUTER PROGRAMMING Learning from pre-written computer programs is more engaging and rewarding than hand calculations and manual plotting Jerry Sommerville 11/11/2013 1
  • 2. Overview • Purpose • Demonstrate math concepts using computer programming • Plan of Action • Draw a smiley face with circles • This demonstrates the behavior of a circle with offsets • Use pre-written computer program to teach math ideas and simple programming language features • English and Music composition parallels • Execution of Plan • Explain math/language features in context of larger goal (smiley face) • Learn how to dissect or experiment with program to understand steps • Let the computer do the hard work • Evaluation of Results • Which method is more engaging and more intuitive? • Presentation of Solution and Summary 11/11/2013 2
  • 3. Plan of Action • Language features • Language has graphics primitives (able to draw) • Language is easy to remember, intuitive • ‘Apostrophe(Comment) • STOP (Cease execution of steps) • SLEEP (Pause execution of steps) • Loop : • For I = 1 to 5: Next I (Repeat execution of steps) • PSET(X,Y) [put a point on the screen] • SQR (Square root) 11/11/2013 3
  • 4. Plan of Action • Circle equation, x2 + y2=R2 • Circle equation with an offset (it is shifted to h, k position) • (x-h)2 + (y-k)2=R2 • Where x, and y are variables (they change) • Radius, R ,and offsets h and k are constants (they don’t change) • Solve for y in terms of x • y= k + SQR(R2-(x-h)2), • y=f(x) , y is dependent upon x • Put this equation in a do loop and change y by changing x, 11/11/2013 4
  • 5. Execution of Plan • Run Entire Program • Use comments to explain phases using apostrophe. • Stop program to explain phases, use “STOP” • Pause program using “SLEEP” • Change constants and variables to understand trends • Edit program to explore other functions and language features 11/11/2013 5
  • 6. Evaluation of Results • When you compare manual (conventional) method vs. computer assisted method • Which method is more engaging? • Which method is more intuitive? • Which requires the most preparation time to teach? • Which enhances programming skills better? 11/11/2013 6
  • 7. Conclusions • Computer program reduces the burden upon math teachers to convey math concepts. • It encourages the development of programming skills because students see a purpose for them • It teaches students to be purposeful (objective oriented) while meticulous (detail oriented) • CANVAS • A term coined for this approach • Computers, Algebra, Numbers, Visual Aids for Science (C.A.N.V.A.S) • The computer screen is used like a canvas in art 11/11/2013 7