iv TABLE OF CONTENT INSTRUCTOR/ SUPERVISOR/ ASSESSOR………IREVIEWERS………..IACKNOWLEDGMENTS……….….IITABLE OF CONTENT……….…..IVLIST OF TABLES AND FIGURES………..…….VIINTRODUCTION………...VIII CHAPTER
PROBLEMS RELATED TO PROGRAMMING METHODS AND IDE
Analyze the common features that a developer has access to in an IDE(M2)…
2.2.1 IDE definition: An integrated development environment (IDE) IDE is considered an interface for users to write code to develop applications, organize groups of documents, automate programming activities The IDE is also integrated with other supporting features such as compiler, compiler, interpreter, error checking (Debugger), formatting organizing code folders, searching code
2.2.2 Basic features of common IDE:
❖ Text editor:code editor is a feature designed to write and edit code.
Figure 2-10 Example about text editor in Visual studio
❖ Debugger:Debugging tools help programmers identify errors in the source code When there is an error, it will report the error to the programmer and indicate the error line so that the programmer knows and corrects the error
Figure 2-11 This is a debugger in Visual studio
❖ Compiler: is the component that translates from this programming language into a computer-processable language, such as binary code. the line is in error! information about each error
❖ Code completion:Full code features help programmers by intelligently detecting and adding common code elements These features help developers save coding time and reduce syntax capabilities law.
Figure 2-12 Debugging in Visual studio.
Figure 2-13 Debugging in Visual studio
❖ Programming language support: IDEs are typically specific to one programming language, however, some applications such as Sublime Title and Visual Studio are supported in multiple languages Before we go into coding, we need to find out the language we want to use and then choose a suitable IDE.
Figure 2-14 Several languages are supported in Visual Studio
2.2.3 Benefits of IDE for programmers:
• The IDE creates a homogenous environment between tools that can meet developer requirements, including version control and debugging tools
• The IDE provides us with quick ideas, complete statements and code, and it also automatically detects problems and points out errors in specific lines of code
• It easily adapts to many different operating systems Besides, it allows adding of new features to meet the needs of programmers
• The standard IDE development interface is considered an effective assistant to help programmers collaborate more easily, speed up deployment quickly and increase work efficiency
• IDE makes developing software and game applications more convenient and easier on mobile and desktop platforms
• Create a working environment that helps programmers become easier and more convenient in their work Thereby improving their working results select the language you want to choose
IDE problems, debugging procedures, and coding standards
Write a program that implements an algorithm using an IDE(P3)
I will write an event-driven program that creates a Windows form to manage employee information First, I will talk about the properties of the components that I will use to write the program:
I write software to manage employee information and find employee information, it includes:
• Enter information: Staff code, full name, date of birth, hometown, Age, Gender, salary
• In the information section, I use 3 buttons "Button" The first button I named " Additional" is used to add the data I entered above into the system, the second button is named "Amend" it has a function to correct information when we fill in the wrong information, the third button is called "Delete" it has the function of de- leting information on the system we entered
• I use the "TextBox" button to record the employee's information and there is a
"DateTime picker" button that has the function to select the date of the year
• Find employee information by searching by hometown, Gender, hometown
• In the search section, I use the "checkBox" button to mark the information I need to search and I also use the "Button" button called "search" it has the function of searching for data information on the system the system that I entered earlier in the information section
Here are the steps I took to create the employee information table from Visual Studio software
❖ Step 2: when entering the previously created project, we will create window forms in that project I will show you the steps to do it with pictures as follows
First we right click on ConsoleApp1
After right clicking on ConsoleApp1, it will appear on the table, click Add and then we select Form(windows form)
After selecting the Form (window form) it will ap+pear a table for us to name the project
❖ Step 3: Enter a name for the project Here I will default to the initial name is :Form1.cs and click Add
❖ Step 4: In the Properties section of the Form you can change the Text as you like, this is the title of the software Will appear in the upper left corner of the form Here I will leave the default as Form1
❖ Step 5: You add the necessary components to the Form, here I will add Label,
TextBox, Button, Datatimepicker, Panel, ComboBox , and checkBox (These components are in the ToolBox section)
Figure 3-4: Adding elements to form
❖ Step 6: To edit you can edit in the Properties of the components
❖ Step 7: After preparing the interface, I start to code You double click on the button1 to capture the event (or the event in Properties) You can coding like a picturebelow:
Figure 3-6: Example of IDE project
❖ Step 8: After saving your project, press F5 or the Start button on the toolbar to run the program Once running, enter your information and find yours in the search section The result is as shown below
Use the IDE to manage the development process of the program(M3)
To be able to use a good IDE that fits our application development needs, we need to choose a language in the IDE that suits our needs In this section, I will use a language called C# which is considered a programming language it uses to create a program I use Visual Studio software to create and manage them
❖ Step 1: We need to install the latest version of visual studio software to be able to use it easily This can be considered an IDE used to develop a program or an application This is quite a famous application among programmers Visual studio I have installed on my computer 2019 version is considered the latest version
• After the installation is complete I open visual studio it will appear as shown below
Figure 3-8 Create a new project or open project
In this interface it will appear two main parts:
• On the left side of the interface, it will show all the projects you have worked on
• On the right side of the interface, it has the functions of opening files in other folders and creating new files
• Open a project or solution:it is used to open a project in a previously default directory that Visual studio installed previously.
• Open a local folder:it is used to open a project that you created earlier and is saved in a certain folder
• Create a new project: used to create a new project.
❖ Step 2: we will create a project using the "create a new project" function
• After you click "create a new project" it will appear an interface and on the left side of the interface it will appear the projects you have worked on recently
• In the middle part of the interface will appear a table of items for you to choose from such as languages, operating systems for you to program, and areas in programming such as consoles, games, Service, web, mobile, office….
• In this part, I will choose c# as the main language to create projects on the win- dows operating system
Figure 3-11: Set the name of the new project and select a framework
• After we have selected the language as the project, operating system, and programming system
• we will enter a name for the project and choose a folder to save the project and click "create" so that the IDE will create a programming space for you
❖ Step 3: we start working on the project we created earlier in the IDE
Figure 3-12: Introduce workspace in Visual studio
I'm going to write a simple project that counts the factorials from 1 to n so that it prints to the scree
Figure 3-13 count the factorials from 1 to n
To run the program we press start This is the result
To create a new class or a new form, do the following steps:
Figure 3-15: Create a new item in Visual studio
To create a new class or a new form, do the following steps:
Right-click and select add -> new item, or press "New item " Then, a new window ap- pears
We will select an item and give it a name In this picture, I choose "class"
Figure3-17 Workspace of class in Visual Studio
I will use break-point, by clicking on the left sidebar it will appear a red dot, so I can see how the program does the steps
Figure3-18 Set breakpoint in Visual studio
Then press