The Programming Projects

2y ago
12 Views
3 Downloads
5.76 MB
87 Pages
Last View : 18d ago
Last Download : 2m ago
Upload by : Wade Mabry
Transcription

Developing Curriculums and EducationalSubjects CenterGeneral Directory forDeveloping the Subject ofComputer & InformationTechnologyThe programming ProjectsStudent BookThird SecondaryUnit Two2016/2017

Information and communicationTechnologyThe Programming ProjectsThird SecondarySecond Term – Student BookPrepared byComputer and Information TechnologyEng. Wassim Salah Eldeen ElManzalawyCentre For Curriculum &Instructional MaterialsDepartment DirectorGeneral Administration for Computer &Dr.Taher Abdelhamid EladlyCurricula Expert and Head of DepartmentDevelopmentInformation Technology DevelopmentMr. Tamer Abdelmohsen MansourMr. Ahmed El Anasari ElSalamoniDepartment DirectorGeneral Administration for Computer &Department DirectorGeneral Administration for Computer &Information Technology DevelopmentInformation Technology DevelopmentEducationally revised byDr.Rougina Mohamad HegazyExpert in Centre For Curriculum & Instructional Materials DevelopmentTechnically revised byMs Mashaallah Mohamad MohammadComputer and Information Technology Curricula Expert ComputerProf. Mohamad Fahmi TolbaComputer and Information Technology ProfAin Shams University1

Designed byMs Abeer Mohamad Anwar MohamadDepartment DirectorGeneral Administration for Computer & Information Technology developmentTranslated byAmira Fawzy AhmedHead of Foreign Languages DepartmentCentre for Curriculum & InstructionalMaterials DevelopmentDalia Hassen Mohamed MahmoudEducational specialist of English languageOffice of the development of the English languagematerial directorTechnical TermsDr Amany Korany IbrahimGeneral ManagerGeneral Administration for Computer and Information Technology DevelopmentEng. Wassim Salah Eldeen El ManzalawyDepartment DirectorGeneral Administration for Computer & Information Technology Development2

Second UnitProducing a project of logic gates simulationIntroductionThis book presents a comprehensive vision of the relationship betweenscience, technology and society, which reflects the role of information andcommunication technology and its innovations in various fields of life andcommunity development, through training students on the skill of theimplementation of some software projects based on the Markup languageHTML, programming languages PHP &VB.NET and applications such asExpression Web.Those projects help students practice many of the technological skills andconscious behaviors by using information and communication technology, inaddition to the development of their multi positive attitudes.The first unit of the book deals with implementation of a project to converta number between the numerical systems programmatically, and this unitincludes a simplified explanation of numerical systems as a cognitive basicbackground, followed by display the unit topics that represent the stages ofimplementation of the project, and the implied skills that the students have totrain on.The second unit deals with the Logic Gates which is considered the basicsfor the electronic integrated circuits and it represents the basics for thecomputer and electronic devices, and how it performs through applied projectsproduction which stimulate it, with showing some life applications to employ theidea of Logic Gates, by considering life decisions as a set of issues ormathematical formulas which can be evaluated and judged right or wrong ,which is considered a lifestyle and style of thinking which helps in taking lifedecisions in a scientific method, which represents a very important input toqualify you, dear student, for your future life, and qualification towards thespecialized study in this field.GOD GRANTS SUCCESSSTAFF3Information and Communication Technology – Third Secondary

Second UnitProducing a project of logic gates simulationTable of contentsSubjectsUnit two: Producing a project of the logic gates simulation6First subject: The logic AND gate10Second subject: Producing a project of the logic gate simulationAND by using visual basic.net19Third subject: Producing a project of the logic AND gatesimulation by using PHPEnrichment only for the academic year 15 1632Forth subject: The logic OR gate40Fifth subject: Producing a project of the logic OR gate simulation48Sixth subject: Producing a project of the logic gate OR simulationby PHP languageEnrichment only for the academic year 15 1660Sevens subject: The logic NOT gate65Eighth subject: Producing a project of the logic NOT gatesimulation.61Ninth subject: Producing a project of the logic NOT gatesimulation.by PHP language.Enrichment only for the academic year 15 16Tenth subject: Employing the logic gates in taking life decisions4pagenumber717882Information and Communication Technology – Third Secondary

Second UnitProducing a project of logic gates simulationAims of INFORMATION & COMMUNICATION TECHNOLOGYbook for Third-grade general secondary: Acquiring some basic concepts and processes for computer systemsand information and communication technology basics. Taking into account certain aspects of Intellectual Security (human,moral and social life) that are concerned with the use of Information &Communication Technology. Using the technological production tools (Visual Basic .Net &PHP.) in supporting and developing education. Producing work and projects that is relatively creative by usingtechnological processes, programs and tools. Employing technological communication tools in communication,interaction, cooperation and exchange of content and insights withothers, in order to support learning. Using technological (tools and resources) in data processing, evaluatingand reporting the results.5Information and Communication Technology – Third Secondary

Unit twoUnit twoProducing a project of the logic gates simulationBy the end of the unit students will be able to:1- Recognize some scientific concepts and terminology related to thecomputer (Programming Languages - The logic gates AND-OR-NOT).2- Suggest simple projects for the logic gates simulation (AND&OR&NOT).3- Employ information and communication technology applications in theconstruction of his educational content and development of its tasks.4- Practice programming skills PHP&VB.NET in performing his tasks.5- Follow the ethics and behaviors of respect for copyrights when dealingwith information, devices, networks, services and web applications.6- Employ interactive learning environments in his learning.7- Employ the logic gates to solve some life and educational problems.8- Use the information and electronic data in the performance of researchand educational tasks in partnership with his classmates.9- Employ the technological tools and resources in supporting making lifedecisions.6Information and Communication Technology – Third Secondary

Unit twoThe logic gatesIntroductionDear students, after the implementation of a project of a program toconvert a number between the numerical systems, we start together toimplement several projects to produce software to simulate some of thelogic gates ,which requires you to be aware of some of the concepts andknowledge which is considered its cognitive base.This unit deals with the concept of Logic (gates and circuits) andtheir kinds, and their related applications and uses in our daily lives, andhow it can be produced. These subjects reflect the role of the logic gates intaking many decisions .and especially daily life decisions.The concept of "logic" refers to the correct thinking rules which wefollow to judge right or wrong issues or mathematical formulas.In addition, the logic gates are the entry point for university studyspecialized in this field.7Information and Communication Technology – Third Secondary

Unit twoBefore dealing with subjects of this unit, we should recognizethe following:The idea of the work of a lot of electronic devices depends on theuse of logic circuits to perform the basic processes that are performed in afrequently, accurately and very high speed aspect.The Logic CircuitThe logic circuits consist of a number of components which arecalled logic gates; the logic gate is a simple electronic circuit that has oneINPUT or more and only one OUTPUT.Based on the availability of certain conditions in the inputs, thevalue of the output is determined, and thus it can be considered as itimplements a logical process.There are many Logic gates which is differ in its function accordingto its design.Some of these famous logic gates are:(1)(2)(3)(4)(5)(6)(7)ANDORNOTNANDNORXORXNORThe three gates (AND, OR, NOT) are considered the basic types ofthe logic gates, which are used in designing a lot of other gates types.8Information and Communication Technology – Third Secondary

Unit twoXOR9Information and Communication Technology – Third Secondary

Unit twoThe logic AND gateLearning outcomesAt the end of this subject, learner should have the ability to: Explain the logic AND gate. Discuss the compatibility gate symbol with his classmates. Design possibilities table of the effect of the two input switchesstate on the output. Explain The Truth Table of AND gate.10Information and Communication Technology – Third Secondary

Unit twoThe logic AND gateIt is called the compatibility gate, it is a gate that has two inputsor more, and only one output. AND gate is represented electrically, by twoswitches or more, (A , B) that are connected respectively, each of the twoswitches is considered an input of the logic AND gate's inputs, thus, thetwo switches represent (Two Binary Variables), as, the light (L) stands forthe output, as it is represented on the following diagram :(The simulated figure of the compatibility gate AND)Study the previous figure, describe it, try to concludethe relation of its components, and then discuss the resultsyou reached with your teacher and classmates.From the previous figure, we can conclude the following: By connecting the two switches, the circle is closed, which representsan input that has (1) value by the (Two Binary System).11Information and Communication Technology – Third Secondary

Unit two By disconnecting any switch, the circle is opened, so, this representsan input that has (0) value by the (Two Binary System), i.e. the valueof any switch that leads to opening the circle is equivalent to (0). Lighted light means that the output value equivalent (1).The non-lighted light means that the output value equivalent (0).Practice (1)"The circuit that is equivalent to thelogic AND gate”Activity book (p: 5)The question now is:What are the possibilities of the two switches state (A, B)and their effect on the electric light (L) state?Discuss with your classmates and your teacher theresults you get, and match it with the followingdiagram:12Information and Communication Technology – Third Secondary

Unit twoABOFFOFFLNON LIGHTEDOFFONNON LIGHTEDONOFFNON LIGHTEDONONLIGHTEDTable (1) The possibilities of the two switches state (A, B) and theireffect on the electric light (L) state.13Information and Communication Technology – Third Secondary

Unit twoThe logic AND gate symbolThe following symbol represents the logic AND gate that has twobinary inputs, study the code, describe it, and then, discuss withyour classmates and your teacher.AND gate symbol (two binary inputs)By studying the logic AND gate symbol, it is clearedthat: (A, B) refer to the inputs of AND gate, and (L) refers to theoutput of the gate. The gate's input that is on the left side of the symbolincludes the value of all the input possibilities, as itexpresses the input as (two binary numbers) (0,1), on theother hand, the output is on the right side (binary numbers)also.14Information and Communication Technology – Third Secondary

Unit twoNumber of forms (possibilities)Each of the logic gates has a number of forms orpossibilities that is accounted by knowing the number of inputs ofthe logic gate by the following law:N 2nAs, N refers to number of forms, the (2) number refers tothe binary system base, that we use as a value of the gate'sinput (0,1), and (n) refers to the number of the gate's input.For example: AND gate (two binary inputs), its forms number is:N 22 4If the AND gate has triple inputs, its number of forms orpossibilities are:N 23 8On the same pattern, you can calculate the number offorms or possibilities of any logic gate.The Truth TableIt is a table which helps in explanation of the logic gatebehavior, taking into account, the relation between the input andthe output of the Logic gate.15Information and Communication Technology – Third Secondary

Unit twoThe Logic AND gate has only output equal (1) in the stateof participating each of the two inputs in the same value (1), andthis means two conditions must be implemented in two binaryinput gate, to get an output that has (1) value, and that is whatyou can notice in the electric representation which is equivalentto the compatibility gate AND ,as the light (L) is lighted onlywhen the two switches (A,B) are connected together and becamein (on) state.From the previous, we can conclude the truth table of thetwo binary inputs logic AND gate, as its input is expressed by abinary value (0, 1) as the following:The truth table of the two binary inputs logic AND gateFrom the previous Truth table, it is noticed that:16Information and Communication Technology – Third Secondary

Unit twoBy considering that any input is a condition, if the twoconditions (1) are achieved in the logic AND gate, it leads togetting the output.The output in AND gate (1) just when all the inputs equalthe value (1).Practice (2)Forms (possibilities) of the output ofthe logic AND gate and the truth tableActivity book (p: 6)The Boolean formula of the logic AND gateThe Boolean algebra is considered a formula of logistic thatshows how logic gates work. The Boolean expression is a briefmethod in order to show what is happening in any logic circuit,the following Boolean expression represents the AND gate thathas two inputs and it is expressed with two formulas :Y A.BOrY ABThis is called “Logical Multiplication”, We can express it asthe following:17Information and Communication Technology – Third Secondary

Unit twoThe output Y is equal to A AND BWe can summarize what is mentioned before in thefollowing table:StatementRepresentation on the AND gateThe gate'sANDnameThe logicsymbol standard- ofthe gateThe number ofWe can calculate the number of possibilities thatformsforms the truth table of the gate of the two binaryinputs by the following law:N 2n N 22 4The truth tableThe BooleanY A. BORY ABformula of theAn Expression of the Boolean formula of the gategateAND that has two inputs.Table (2) the AND gate summary18Information and Communication Technology – Third Secondary

Unit twoProducing a project of thelogic AND gate simulationLearning outcomes:By the end of this subject learner should have the ability to:1. Determine the stages of producing a project of the logicAND gate simulation by using the Visual Studio.Netapplication.2. Design the interface of the project of the logic AND gatesimulation.3. Use the Visual Studio.Net application to build up theinterface of the project, explaining the controls.4. Explain the used programming code in the project of thelogic AND gate simulation.5. Employ the code of the project implementation practically.19Information and Communication Technology – Third Secondary

Unit twoThe project purposeProducing a program to simulate the logic AND gate.The project production requirements:1- The scientific background of the logic gate AND, and that is whatis studied before.2- Determination of the programming language that you can use inthe project production, you can make use of what is previouslystudied and employ your experience and your skills in VisualBasic.Net and PHP languages.Implementation of the project procedures:1- Designing the interface that the user uses for the project "GraphicUser Interface" GUI, and determining the suitable controls for each useof the project implementation in a suitable aspect.2- Adjusting controls’ properties in view of the necessary needs of theproject production.3- Writing the programming code.20Information and Communication Technology – Third Secondary

Unit twoThe stages of the project production:Firstly: The designing stageDear student, you can design the interface of the project that isbased on your desires, and include controls on it, to achieve your aim ofsimulating the (connect/disconnect) switch of turning on the electric lightprocess.The following figure is a proposal of designing the form windowand its necessary controls to produce the project.By studying the components and the elements of the previousform, we can conclude controls on the form window and theaim of each of them, and it is obviously shown in the followingtable:21Information and Communication Technology – Third Secondary

Unit twoControlIts purposeForm 1The basic object on which we put allthe used controls on the user'sinterface.An object that is used to implementspecific code when it is clicked.An object that is used to implementanother code when it is clicked.An object that is used in showingthe picture of the (lighted-nonlighted) light.An object that is used in showingthe picture of the electric ce (1)Designing the user interface of theprojectActivity book (p: 8)Secondly: Stage of implementing the design and adjust thecontrols properties of the project.You can start to insert the needed controls for producing a project ofsimulation of running the logic gate "AND" by opening the VisualStudio.Net application, and inserting controls on the form window andadjust its properties, in order to be prepared to write necessary code toemploy them.22Information and Communication Technology – Third Secondary

Unit twoActivity (1)"Designing the user's interfaceimplementation by using(Visual Studio. Net) application"Activity book (p: 9)(The procedures from 1:3)Thirdly: Writing the programming code stage:Before starting writing the project code, try to suggest the possibleresults of the project code implementation according to the light state (theoutput), we can show its four possibilities in the following table:23-The first light state is: On-The first light state is: Off-The second light state is: On-The second light state is: Off-The light picture : lighted-The light picture : non-lightedInformation and Communication Technology – Third Secondary

Unit two24-The first light state is : On-The first light state is : Off-The second light state is : Off-The second light state is : On-The light picture : non-lighted- The light picture : non-lightedInformation and Communication Technology – Third Secondary

Unit twoObservations:The idea of code is summarized as follows:Determining an object or more that is responsible for the codeimplementation when a certain event occurs on the object, and in theproject, a code can be written in the following objects: The button state is changed between "On" and "Off" by pressing onClick. Finding two pictures in two different files of the light, one of them islighted and the other is non-lighted, are shown in the same place ofthe PictureBox1 tool depending on the instructions of the programmingcode.Form object (Form1 load event): To show the non-lighted light image in picturebox1. To show the electrical circuit image in pocturebox2. To show the two buttons in (Off) state.Button1 object: By pressing click on it, the code tests the switch state and changes itbetween (on- off). Then, testing the first and second switches state, and changing thelight image into the suitable correct state for the two power switchesstate.25Information and Communication Technology – Third Secondary

Unit twoButton 2 Object: By pressing click on it, the code tests the switch state and changes itbetween (On- Off). Then, testing the first and second switches st

Computer and Information Technology Curricula Expert Computer . programming languages PHP &VB.NET and applications such as . and conscious behaviors by using information and communication technology, in addition to the development of their multi positive attitudes.

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. Crawford M., Marsh D. The driving force : food in human evolution and the future.

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. 3 Crawford M., Marsh D. The driving force : food in human evolution and the future.