You are on page 1of 9

LessonPlan(ProblemBasedModel)

Subject InformationTechnology

Date April12th,2016

Level Form4

Topic ProblemSolvingandProgrammingDesign

Subtopic ConditionalStatements

Materials Notebook,paper,writingutensils,whiteboard,handouts,projector,computer,virtualcampus,Slide
presentation,computer,pascalcompiler,virtualcampus

Time 80Minutes

Class 4S31

Schedule/Sequence Period2Week9

References Campbell,H.,&Wood,A.(2010).InformationTechnologyForCSECExaminations.Macmillan
Publishers.
Gay,G.,&Beckles,R.(2005).OxfordinformationtechnologyforCXC,CSEC.Oxford:OxfordUniversity
Press.

Previous Abilitytorecallbasicpascalprogrammingsyntax,IDEandcompilation.
Knowledge Familiaritywithconditionalstatements
Familiarityvariablesanddatatypes

Objective(s) Providedwithascenario,studentswillbeableto:

Identifystrategiesforcreatingaprogramtoresolvethestatedissue.
(1)
Computeasalarywithdeductions. (3)
Createacalculatorprogramtocarryoutthenecessarycomputationautomatically.(6)


Version1.0|April12,2016 1of9

LessonPlan(ProblemBasedModel)

Content/Concept Anagreeduponandregularcompensationforemploymentthatmaybepaidinanyfrequencybut,in
commonpractice,ispaidonmonthlyandnotonhourly,daily,weekly,orpieceworkbasis.
Adeductionisasubtractionofaquantityfromgrossincomethatarisesduetovarioustypesof
expensesortaxesincurredbyanemployee.
Aprogramislikearecipe.Itcontainsalistofingredients(calledvariables)andalistofdirections(called
statements)thattellthecomputerwhattodowiththevariables.Thevariablescanrepresentnumeric
data,text,orgraphicalimages.
Conditionalstatementsprovidesaprogramwiththeabilitytotestavariableagainstavalueandactin
onewayiftheconditionismetbythevariableoranotherwayifnot.Theyarealsocommonlycalledby
programmersasIFstatements.

Skills Abilitytoidentifyandunderstandtheproblem.
(Disseminating,Analysis)
Communicationandteamworktodiscussanappropriatesolution. (Disseminating,AbilitytouseandCite
Information)
Problemsolvingtodetermineanappropriatesolution.(Disseminating,Analysis)

Attitude(s) Appreciatetheimportanceofunderstandinghowtocalculatesalarywithdeductionsinareallifework
environment.
(Appreciation)

Introduction Phase1:

Studentswillformgroupsof4basedontheassignationofnumberedpapers.
Eachgroupwillbeaskedtobrieflydiscussthefollowingquestion
Whatisasalaryandhowdoyoucalculateit?
Whydoyouthinkitisimportanttoknowhowmuchapersonmakesandhowmuchisdeducted?
Askatleast2groupswillbeaskedtosharetheirviewsandteacherwillprovidefeedbackregardingwhat
ismentioned.
Thestudentswillremainintheirgroupsandteacherwilltransitioninapresentation.

Development Phase2:

Theexplanationofasalarywillbepresented.
Theexplanationofadeductionwillbepresented.
Areviewofaprogramwillbecarriedout,focussingon:


Version1.0|April12,2016 2of9

LessonPlan(ProblemBasedModel)

ProgramStructure
Avariable
Aconditionalstatement

Phase3:

Studentswillbeprovidedwithascenarioregardingsalariesanddeductions.
Studentswillbepromptedtotodiscussthescenario.
Asagroupstudentswillbeaskedtoprovideapossiblesolutionintheformaanalgorithm.
Asagrouptheywillbeaskedtooutlineallthestepsrequiredtoresolvetheissueonpaperasan
algorithm.
Teacherwillverifythateachgroupshasasolution.

Phase4:

Studentswillbeindividuallyaskedtoconverttheiralgorithmicsolutionintoaprogramusingtheir
computerandintegrateddevelopmentenvironment(IDE).
Studentswillbeaskedtocompileandruntheirsolution.
Teacherwillallowtimefortheprogrammingofsolution.
Teacherwillcheckforproperexecutionanddisplayingofresultsfortaskcompletion.
Teacherwillasktwostudentstoexecutetheircodeusingtheprojectorandtestdataprovidedbytheir
colleagues.
Theclasswillbeaskedtoreviewandcommentontheresults.

Conclusion
Teacherwillreviewtheproblemandprovidetheteachersstepsandsolutionstoresolvetheissue.
Teacherwillengagestudentsinashortdiscussiontoaddressanyissuesarisingfromtheactivityandto
obtainfeedback.
Anadditionquestionwillbeprovidedandstudentswillbeaskedtosubmitasolutioninthenextclass
session.


Version1.0|April12,2016 3of9

LessonPlan(ProblemBasedModel)

ExtendedActivity Studentswillbeaskedtospeaktotheirparentsandfamilytoobtainsalariesanddeductionsthenmodify
theircalculatortocalculatethetakehomepayfortheseindividuals.

Evaluation Perspectives Strengths Areasofimprovement

Teacher Teacherwasabletoeffectivelymaketheactivity Teachershouldhavetakenmore


interactiveandthestudentsappreciatedtheeffort. timethepresenttheescenariowell
Teacherwasabletoremaincalmandfocusedduring tothestudentstoensurethatthe
thelesson.Teacherwasalsoabletokeepthestudent fullyunderstoodwhattheywereto
engagedthroughoutthedevelopmentandcodingof dofromthebeginning.Thisresulted
thesolution. intheteacherhavingtorevisitand
explaintheproblemagainwhilethe
discussionshadalreadystartedso
somestudentsthatwerehaving
difficultystillunderstandingthe
scenario.

Students Studentswerefullyengagedinthescenarioandwere Novisibleornotableareaof


abletocomprehendthecontextallowingthemtocome improvementidentified.
upwithsolutionsthattheycouldcodeandprovetobe
functional.

FollowupActivity Studentscanbeaskedtovisitwithapayrollclerkoraccountantofasmallbusinessandtoseeifthey
canusetheircalculatorprogram(withmodificationandadjustmentsmadetosuitthecontextofthe
business)tocalculatesalariesanddeductionsforemployees.


Version1.0|April12,2016 4of9

LessonPlan(ProblemBasedModel)

Worksheet:


InformationTechnology
Programming

YouarethenewpayrollclerkforFrutaBumbaBelizeandyourfirstjobistocalculatetheworker's'salaryattheendoftheweek.

Aspartofthetaskyouareinchargeofansweringqueriesregardingsalaries.Thesupervisorhasaskedyoutodevelopasalarycalculatorthat
canquicklyprovideresultswhenaworkercomestoquerysalary.

AtFrutaBumbathefollowingguidelinesaretakenintoconsiderationwhencalculatingsalaries:


Overtimeispaidat$5.00/hr
Overtimeisconsideredwhenaworkerhasworkedover40hrs/weekwhichistheminimumhoursworked.
SocialSecurityischargedat8.15%/week
IncomeTaxischargedat6.75%/week
Allworkerscontribute5%oftheirsalarytoapensionfund.
SocialSecurityandIncometaxareonlychargedoverthegrosssalaryandnottheovertimesalary.
Skilledworkersarepaidat$5.00/hrandunskilledat2.25/hr.

Youarerequiredtodesignacalculatorthatcanimmediatelyshow:

Therateperhourforaworkergiventhetypeofworker.
Asummaryof allcontributionquantities.
Aworker'sgrosssalary.
Aworker'sovertimesalary.
Aworker'stakehomepaygiventheinformationabove.


Version1.0|April12,2016 5of9

LessonPlan(ProblemBasedModel)


Pleaseseeattachedsampleteachersolution,compliedrunningprogram
implementingsolutionandsubsequentcomputercode.


Version1.0|April12,2016 6of9

LessonPlan(ProblemBasedModel)

Programsalarycalc

Var
gtotal,ototal,ss,itax,pen,srate,urate,orate,hours:Real
etype:Integer
wlimit,tpay,dss,ditax,dpen:Real

Begin

//Deductions
ss:=0.0815
itax:=0.0675
pen:=0.05

//Ratesforemployeetypes
srate:=5.0
urate:=2.25
orate:=5.0

//Conditionforovertimemustbehrsgreaterthanwlimit
wlimit:=40.0

//Othervariables
gtotal:=0
ototal:=0
tpay:=0
dss:=0
ditax:=0
dpen:=0

Writeln('*******************************************************')
Writeln('Thisprogramwillcalculatethesalaryforanemployee.')


Version1.0|April12,2016 7of9

LessonPlan(ProblemBasedModel)

Writeln('*******************************************************')
Writeln()

Write('Pleaseentertypeofemployee(1Skilledor2Unskilled):')
Readln(etype)
Writeln()
Write('Pleaseenternumberofhoursworked:')
Readln(hours)

If(hours<wlimit)then
Begin
If(etype=1)then
Begin
gtotal:=wlimit*srate
End
Else
Begin
gtotal:=wlimit*urate
End
End
Else
Begin
If(etype=1)then
Begin
gtotal:=wlimit*srate
ototal:=(hourswlimit)*orate
End
Else
Begin
gtotal:=wlimit*urate
ototal:=(hourswlimit)*orate
End


Version1.0|April12,2016 8of9

LessonPlan(ProblemBasedModel)

End

//Deductions
dss:=gtotal*ss
ditax:=gtotal*itax
dpen:=gtotal*pen

//Takehomepay
tpay:=gtotal+ototaldssditaxdpen

Writeln()
Writeln('Summary:')
Writeln('=========================================')
Writeln()
Writeln('Thenumberofhoursworkedis:',hours:1:2)
Writeln('Thegrosssalaryis:',gtotal:1:2)
Writeln('Theovertimesalaryis:',ototal:1:2)
Writeln('TheSocialSecuritydeductionis:',dss:1:2)
Writeln('TheIncomeTaxdeductionis:',ditax:1:2)
Writeln('ThePensiondeductionis:',dpen:1:2)
Writeln()
Writeln('')
Writeln()
Writeln('Thetakehometotalis:',tpay:1:2)

End.


Version1.0|April12,2016 9of9

You might also like