编程1.docx
《编程1.docx》由会员分享,可在线阅读,更多相关《编程1.docx(18页珍藏版)》请在冰豆网上搜索。
编程1
GuangdongInstituteofEducation
BTECCenter
Program:
Electrical/ElectronicEngineering(Electronic)
UnitTitle:
ProgrammingConcept
UnitNo:
34AssignmentTitle:
DesignandDevelopanApplication
AssignmentNo.:
03401
IssueDate:
March9,2010
SubmissionDeadline:
Part1:
May20,2010
Assessor/Tutor:
ZhefangPeng,SunnyYao
InternalVerifier:
YuhuangZheng
Student:
ChongChen
Student’sReg.No:
B876174
NOTESTOSTUDENTS
●Checkcarefullythesubmissiondateandtheinstructionsgivenwiththeassignment.Lateassignmentswillnotbeaccepted.
●Ensurethatyougiveyourselfenoughtimetocompletetheassignmentbytheduedate.
●Donotleavethingssuchasprintingtothelastminute–excusesofthisnaturewillnotbeacceptedforfailuretohand-intheworkontime.
●Youmusttakeresponsibilityformanagingyourowntimeeffectively.
●Ifyouareunabletohandinyourassignmentontimeandhavevalidreasonssuchasillness,youmayapply(inwriting)foranextension.
●Whenyourefertotheworkofotherauthorsinyourassignment,youmustpracticecitationbyfollowingHarvardSystemforReferencing.
●Ifyouarecaughtplagiarizing,youcouldhaveyourgradereducedtozero,oratworst,youcouldbeexcludedfromthecourse.
STUDENT’SDECLARATION:
Iconfirmthatthisisallmyownwork.
StudentSignature:
ChongChene
ASSESSMENTforPart1
Outcome/
Grade
Criteria/
Descriptors
Evidence
Feedback
Assess
IV
PassAssessment
1.Designanddevelopcodeusingstructuredprogrammingmethods
1.identifyandselectappropriatepre-defineddatatypes
Variablesarecorrectlydeclaredintermsofdatatype.
Youcancorrectlydeclarevariables.
V
2.usesimpleinput/outputandappropriateoperatorswiththeabove
Propermethodsareusedtoacceptinputanddisplayoutput.
Youcanuseproperfunctionstoacceptinputanddisplayoutput.
V
3.identifyanduseappropriateselectionstructuresandloopstructuresforthegiventask
Properselectionandloopingstructuresareusedwherenecessaryintheprogram.
Youcanuseproperselectionandloopingstructures.
V
4.produceprogramstodesiredstandards
Anexecutableprogramthatmeetsthebasicrequirements.
Yourprogramcanmeetthebasicrequirements.
V
2.Usemodularizationappropriatetothechosenprogramminglanguage
1.constructaprogramfromadesignanduseappropriatefunctions/procedures
Anexecutableprogramthatmeetsthebasicrequirements(suchasusingproperfunctions/procedures)accordingtothedesign.
Youcanusenolessthanthreecustomfunctions.
V
2.demonstratetheeffectofscopeandlife-timeofvariables
Localand/orglobalvariablesareproperlyusedaccordingtonecessityandtheireffectofscopeandlife-timearedescribed.
Localandglobalvariablesareproperlyusedinyourprogramandtheirscopeandlife-timearedescribed.
V
3.passdataeffectivelybetweenmodules
Parametersareeffectivelypassedbetweenfunctions.
Parametersareeffectivelypassedbetweenfunctions.
V
3.Produceappropriatedocumentationforagivenprogramapplication
2.developdocumentationforapre-describedprogramapplication
Thedevelopingdocumentscontaintherequiredcontents.
Youaccomplishthedevelopingdocumentaccordingtorequirements.
V
GradingAssessment
M1identifyandstrategiestofindappropriatesolution
Aneffectiveapproachtostudyandresearchhasbeenapplied
Structuredprogramming.
Agoodsolutionforthegivenproblemisappliedandeffectivejudgmentsaremade.
Effectiveapproachhasbeenappliedtostudyandresearch.
Structuredprogrammingmethodiswellapplied
V
M2select/designandapplyappropriatemethods/techniques
Relevanttheoriesandtechniqueshavebeenapplied.
Theuserinterfacecontainssuchfeaturesasbeingabletoevaluateinputtoavoidinvalidcharacters,etc.
Theuserinterfacecanconverteffectiveinput,dealwithinvalidinputandexitrightly.
V
M3presentandcommunicationappropriatefindings
Arangeofmethodsofpresentationhavebeenusedandtechnicallanguagehasbeenaccuratelyused.
Developingdocumentiswritteninstraightawaylanguage;orprogramcommentsarewellwritten.
Programcommentsarewellwritten.
V
D1usecriticalreflectiontoevaluateownworkandjustifyvalidconclusion
Conclusionshavebeenarrivedatthroughsynthesisofideasandhavebeenjustified.
Thereisevaluationindevelopingdocumentthatexplainsprogram’sadvantagesanddisadvantages.
Youhaven’tprovidedtheevaluationthatexplainsyourprogram’sadvantagesanddisadvantages.
X
D2takeresponsibilityformanagingandorganizingactivities.
Autonomy/independencehasbeendemonstrated
Manageyourdevelopingworkaccordingtoatimescheduleandimplementtheapplicationindependently.
Youcan’tcompleteyourassignmentindependently.
X
D3demonstrateconvergent/latercreativethinking.
Innovationandcreativethoughthavebeenapplied
Multiplesolutionsordifferentoptionstrategiesarepresentandevaluated.
Receptivenesstonewideasisshowninthedesignofalgorithmoruserinterface.
Yourprogramhasnoinnovation.
X
Assessor’sadditionalcomments
Thisassignmentwassuccessfullycompleted,andallrequirementshavebeenmet.Itisgoodthatyouhavegraspedstructuredprogrammingmethodandhavedesignedgooduserinterfaces.Welldone.Butifyoucouldevaluateyourworkobjectively,completeitindependentlyandpresentyourcreativethought,youwouldhavebeenabletogetD.Dobetternexttime!
Assessor’ssignature:
SunnyYao
Student’sFeedback
Thisassignmentdesignedverywell,afterIfinishedit,Ilearnedalot.Forexample,Ilearnedhowtoputourknowledgethatwelearnedintostudy.Ialsolearnedthatifyouwanttodotheassignmentbetter,youshouldreadmoreconferencebooksandtakepartinthegroupdiscussion.ishoulddoitbetternexttime.
Student’ssignature:
AssignmentDescription
Scenario:
Thesoftwarecompanywhereyouareworkingisgoingtodevelopaprogramthathelpsstudentslearnunittransformation,orprovidescalculationtoolsforengineers.Thisprogramcanperformanumberofunittransformations.Someofthesefunctionsarelistedbelow:
1)Lengthconversionwithdifferentunits;
2)Areaconversionwithdifferentunits;
3)Pressureconversionwithdifferentunits;
4)Temperatureconversionwithdifferentunits.
Numbertransferbetweendifferentunitsystems(e.g.Celsiustemperature,Fahrenheitscale,Absolutetemperature,etc).
Youareonememberofthedevelopmentteam.ThedevelopmentteamhasdecidedtodevelopthisapplicationbyusingthedevelopingenvironmentofTurboC2.0,andoneofyourteammateshasdesignedtheframeworkoftheuserinterfaceasshownbelow.
************************************
*1Lengthconversion*
*2Areaconversion*
*3Pressureconversion*
*Pleaseinputthenumbertoselect:
__*
************************************
Part1(ThispartmustbecompletedbeforeMay20,2010):
Youarerequiredtoimplementoneortwofunctionsofthisapplication.Youmustsubmitadesignreportandtheapplicationimplementedfromthedesign.Thesubmittedapplicationonlyneedstocontainthreeorfourfunctionsyouhaveselectedtoworkon.Thedesignreportmustcontainthefollowingcontents:
1.Listthefunctionsoftheprogramorexpressthemwithadiagramwhichshowshowmanylibraryfunctionfunctionsthereareinyourprogram,andhowmanycustomizedfunctionsthereare;
2.Theexplanationoftheuseofvariables.Youmaynotuseglobalvariablesinthefunction,butyouneedtoexplainthefeaturesofbothglobalvariablesandlocalvariables,andexplainwhyyouuseordonotusetheglobalvariables.
3.Atleastoneflowchartrepresentingthemainalgorithmofthecalculationfunctionyouhavechosentoworkon.
Thespecificrequirementsarelistedbelow.
Tasks:
1(Criterion1.1):
Identifyandselectappropriatepre-defineddatatypes.Allvariablesintheprogramarecorrectlydeclaredintotheproperdatatypes.
2(Criterion1.2):
Usesimpleinput/outputandappropriateoperatorswiththeabove.Propermethodsareappliedtoacceptinputanddisplayoutput,andtherightdatatypesareproperlyused.
3(Criterion1.3):
Identifyanduseappropriateselectionstructuresandloopstructuresforthegiventask.
4(Criterion1.4,2.1,2.3):
Producetheprogramtothedesiredstandards,constructingitfromthedesignwiththeappropriatefunctions.Theremustbeatleastonecustomizedfunctionthatcanbeinvokedbyotherfunctionsinthispartoftheprogramandthereshouldbedatapassedeffectivelybetweentheinvokedandinvokingfunctions.
5(Criterion2.2):
Demonstratetheeffectofscopeandlife-timeofvariables.Youshouldplantheuseofvariables,describetheminyourreport,andusethemaccordingtoyourplan.
6(Criterion3.2):
Developdocumentationforthisprogramapplication.Thedesignreportordevelopingdocumentshouldcontainthebasicrequiredcontents.
NOTE:
Youshouldkeeprecordsofyourandyourteam’sbehaviours,suchastestinganddebuggingtheprogram.Thisalsocontributestogooddocumentationoftheprogramandyouwillneedtherecordsforthelaterpartofyourassignment.
Designspecification
Userinterface
Thisapplicationcanhelpsustoimplementingtheconversionoftemperature,length,andpressure
1.Temperatureconversion(FahrenheittoCelsius).
2.Lengthconversion(metertomillimeter)
3.Pressureconversion(kilopascaltoPascal).
Letusruntheprogram,firstIselect’1,’theuserinterfaceshowsasfollows
Iinputanumber20,itwillappear68.000000likethis
IfIinputa