资源描述:
《新课标人教版高二语文下《外国小说欣赏》总训练.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、COMPUTERPROGRAMMINGSource:ComputingConcepts(theI-series)byHaag,Cummings,andRhea,McGraw-Hill/Irwin,2002.WHATISCOMPUTERPROGRAMMING?Avocabularyandsetofgrammaticalrulesforinstructingacomputertoperformspecifictasks.Thetermprogramminglanguageusuallyreferstohigh-levellanguages,sucha
2、sBASIC,C,C++,COBOL,FORTRAN,Java,andPascal.Eachlanguagehasauniquesetofkeywords(wordsthatitunderstands)andaspecialsyntaxfororganizingprograminstructions.Regardlessofwhatlanguageyouuse,youeventuallyneedtoconvertyourprogramintomachinelanguagesothatthecomputercanunderstandit.There
3、aretwowaystodothis:compiletheprograminterprettheprogramTHEPROGRAMMINGPROCESSAnalyzetheProblemDevelopanAlgorithmDocumenttheProgramWriteCodefortheProgramRuntheProgramTesttheResultsANALYZETHEPROBLEMAprogrammermustknowwhatinformationwillgointothesoftware,howitwillprocesstheinforma
4、tion,andwhatwillresult.Allsoftwaremustworkwiththreeconceptstobesuccessful:Input:Informationthatcomesfromanexternalsourceandentersthesoftware.Inputcancomefromtypingonakeyboard,fromrecordsinadatabase,orfromclickingonanimagewiththemouseProcessing:Managesinformationaccordingtoapie
5、ceofsoftware’slogic.Processingiswhatthesoftwaredoestotheinputitreceives.Thiscanbeanythingfromaddingafewnumberstogethertomappingtheearth’sclimate.Output:Theinformationsoftwareproducesafterithasprocessedinput.Outputcanappearonacomputerscreen,inaprintout,orinrecordsinadatabase.AL
6、GORITHMSAlgorithmsarethestepsneededtosolveaproblemusingpseudocodeorflowcharts.Aftercreatinganalgorithm,programmerscheckitslogic.Alogicerrorisamistakeinthewayanalgorithmsolvesaproblem.Programmerschecktheiralgorithmsbyinputtingtestdataandcheckingthelogicbyhandorwithacalculato
7、r.PSEUDOCODEPseudocodeusesEnglishstatementstocreateanoutlineofthenecessarystepsforapieceofsoftwaretooperate.Programmerscallthesestepsanalgorithm.Analgorithmisasetofspecificstepsthatsolvesaproblemorcarriesoutatask.Whilethereisnosetofrulesforwritingpseudocode,itusuallyfollowsrul
8、essuchas:UsingsimpleEnglishPuttingonecommandonalinePlacingany