At this moment I would like to thank all parties who support this book to be published. This book will be titled "Software Engineering", together with one of the training's expertise in the Business School (SMK).
ADVANCED PROGRAMMING ALGORITHM
- Concept of multidimensional array
- Matrix operation with Multidimensional Array
- PROCEDURE AND FUNCTION
- SUMMARY
- EXERCISE
We can create procedure for respective processes and call them from the main process as shown in Figure 6.7. As the area calculation is completed, the final result is sent back to the main process to be printed.
APPLICATION PROGRAMMIN USING VB & VB.NET
Foundation of Visual Basic
- Main GUI based programming principles
- Data type, Variable and Constant
- Operator
- Control Program Structure
- Procedure and Function
Type any text in the TextBox and then click OK or press Enter, there will be nothing. Type "nusantara" in TextBox and then click OK or press Enter, a computer image will appear.
Access and Database Manipulation with Visual Basic
- Create and Manipulate Database using ADO
ODBC is mostly used to access different types of databases including Ms FoxPro, Ms Access, Ms SQL Serve, Oracle or even data in the raw data file format. OLE DB is a technology to access low-level databases and is intended to replace the ODBC function.
COM Technology
- COM Concept
In the above code, we use one of the methods of the previously opened object ("Microsoft Word 8.0 Object Library"). In the reference windows in Figure 7.8 there are a large number of COM that can be used.
SUMMARY
Dim suggestion As Word.SpellingSuggestion Dim colSuggestions As Word.SpellingSuggestions ' penmanda dokumen bila belum ada dokumen yang terbuka. Similarly we can use method or function which we like to use from COM object which has been loaded.
EXERCISE
JAVA OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING CONCEPT
- Abstraction
- Encapsulation
- Inheritance
- Polymorphism
Abstraction, also known as composition, is the principle of simplification by modeling a complex application class according to the problem. Car as an inherited class is known as a superclass while sedan, truck and bus as an inherited class is known as a subclass.
INTRODUCTION TO JAVA
- Software Requirement
- Source Code Compilation
For example, we can put the source code in the directory d:\TestCode\Java, and then we need to set the path so that we can use the Java compiler from that directory. Then save the source code file with the same name as the class in the code, namely main, and add a .java extension. In the case of block code, it contains System.out.println("Hallo ini Java lho"); statement.
Before running, the source code (Main.java) must be compiled using javac as shown in Figure 8.7.
DATA TYPE, VARIABEL, DAN INPUT/OUTPUT (I/O) STATEMENT
- Data Type
- Variable and Constant
- Input / Output
To get input from the keyboard we need to use the class buffered reader which is in java.io package. So, at the beginning of our program, we need to include this class in the source code. The three (3) lines that started with input show that we will use the class BufferedReader, InputStreamReader and IOException in java.io package.
System.out.println() creates a new line, while System.out.print() does not create a new line.
OPERATOR
- Arithmetic Operator
- Relational Operator
- Logical Operator
In VB, to compare two operands whether they are equal or not, the operator = is used for equal and < > for not equal.
PROGRAM CONTROL STRUCTURE
- Selection Structure
- Looping Structure
- The use break and continue
If the grade is more than 90, then the program will print “Your grade is very good. The general syntax of for is: for (start value; condition; increment) followed by the block to be repeated. The program will exit the loop body and continue with the statements after the loop termination sign.
EXCEPTION HANDLING
- The understanding of Exception Handling
- Try and Catch
- Throw
- Finally
However, it stops running and displays the occurrence exception or abnormal condition message as shown in Figure 8.8, and the program stops. As shown in Figure 8.8, it informs the exception type and the exception location on which line. The reaction occurs when an exception occurs while running the following System.out.println(exc); announcement.
Using the above mechanism, the program will not be forced to terminate, in fact, after the try-catch block, it will continue to run.
MULTI-THREADING
- Concept of Thread
- Thread Creation and Usage
- Multi-Thread
In the next line starting with for, we will use the command to control the running thread. Then we create the TestRunnable object from this class, see the line TestRunnable obj = new TestRunnable. This object is used to create new thread using constructor class Thread, see the line Thread t = new Thread (obj).
Then in class Demo Multiple Thread, we create object t1 from class MyThread 1 and object t2 from class MyThread2.
OBJECT ORIENTED PROGRAMMING APPLICATION USING JAVA 65
- Application of Inheritance
- Implementation of Overriding and Overloading
- Application of Polymorphism
- How to use Package and Interface
In the example above, the Bangun class has a hitungLuas() method as a superclass, but it is not yet defined. In the Segitiga class, the hitungLuas() method is overridden to get the area value of the triangle. In Example 8.30 and 8.31, we make a Bangun class that is a parent class that has a hitungLuas method.
In the example above, we create an interface named Bangun with two (2) methods, namely area() and volume().
SUMMARY
EXERCISES
Grade school staff has the variables Name, Address, Children, Start Date, and Rank. In addition, it has a seniority method calculated from the work start date and the current date, as well as a base salary calculation method. In addition to the variables and methods in the superclass, the classifier has additional variables, namely the field of expertise and the method for calculating the teaching allowance based on the hourly allowance time.
The administrative personnel class, in addition to the variables and methods in the superclass, also has additional variables, namely the weekly working hours and the overtime calculation method.
APLICATION PROGRAM C++
BASIC C++ PROGRAMMING
- Structure of C++ Program
- Header File (.h)
- Comment, Identifier and Data Type
- Operator
- Control Program Structure
- Input / Output
The variable declaration is first done by setting the data type followed by the variable name as in figure 9.5. Integer data type 4 bytes wide Integer type but greater than int Fraction data type. Data type in fraction, but greater than float Data type in letter, numeric, symbol (alphanumeric) character as long as inside the sign " " or.
As in cin, the cout command can be used to display characters one at a time or simultaneously.
FUNCTIONS IN C++
- Function Types
- Using Parameter in Function
In the above example, we create a function, namely Print-outNumber with type void, so no return value. To define this function we don't use void, use the data type of the returned value. Like VB and Java, function C++ also allows the use of parameter or argument to send input or collect output from that function.
In the main() function, the variable Val is used to hold the value to pass the parameter for calling the quadratic function.
POINTER AND ARRAY
- Concept and Understand Pointer
- Using New and Delete in Pointer
- Array
This statement means that the address of the variable (not the pointer) will be filled with the address of the value from X. The & before the variable name means that we want to use the value of the memory address, not the actual value. If you notice, when we enter a value of 5 in the variable X, the variable *Address will contain a value of 5.
We can later change the value in other programs or when the program is running.
CLASS
- Class Declaration
- Inheritance
- Polymorphism
Declaration of method set_value is inside the class Rectangle, but the implementation is outside the class. Implementation method outside the class uses character::, also to define external class member, (Examine the statement void Rectangle::set value (int a, int b)). After the class is formed, we can use and create object which is an instance of the class.
The advantage of using a pure virtual function is the freedom to define functions in the successor class.
OBJECT ORIENTED APPLICATION DESIGN
There are two (2) relationships described in the figure, namely relationships of inheritance with arrow marking and association (relationships between two or more classes) with line without arrow. Bahan Bacaan and Alat Tulis are subclasses of Barang, while Buku and Majalah are subclasses of Bahan Bacaan. In the above case, we can apply the concept of inheritance and polymorphism as well as using pure virtual function in class Barang.
To link these files and call class from another file, we can use preprocessor #include followed by the file name.
SUMMARY
The input and output statements are executed with the commands cout and cin as streams that include in the class iostream.
EXERCISE
If the customer chooses option 1, the customer will be asked to enter the amount of Rupiah to be held. If the customer chooses option 2, the customer will be prompted to enter the amount of Rupiah to be withdrawn. The program output should give A if the grade point average is equal to or greater than 80, and B if it is less than 80 and equal to or greater than 70, and C if less than 70.
BASIC SYSTEM DATA BASE
Database
A database is a collection of data that relate to each other, are stored in computer hardware and use software to manipulate them. The database is one of the main components in the information system, as the information system base for users. If it is a filing cabinet, use a wood, iron, or plastic cabinet, and for a database, use electronic storage media such as disks (hard disk, CD, or tape).
The main principle of the database is the independence data concept such as separation data from application program (Lewis et al., 2002; Post, 1999).
Database Management System
In this part, we will explain five (5) kinds of DBMS familiar to DMBS users, such as Microsoft Access, MySQL, Microsoft SQL Server, PosgreSQL, and Oracle. Microsoft Access can use data stored in Microsoft Jet Database, Microsoft SQL Server, Oracle, or other Open Database Connectivity (ODBC) compliant. Microsoft Access is often used in Rapid Application Development, especially for building prototypes and applications independently.
Similar to MySQL and Microsoft SQL Server, we can interact with Postgres using client-side commands with tools such as psql.
ENTITY-RELATIONSHIP DIAGRAM
- Entity
- Attribute
- Relationship
Entity is an individual to represent a real matter/thing and can be distinct from each other. Has attribute such as: Student ID number, name, address, phone number, place of birth, date of birth etc. Relationships with cardinality one-to-one means that one member of entity set can only be connected to one member of other entity set .
Cardinality one to many and many to one are the same because the analysis cardinality is always viewed from both sides.
RELATIONAL DATA BASE
- RELATIONAL DATA BASE MODEL
- Relational Database Structure
- Inter Table Relationship
A column must have column name and data type for data in the column as shown in Figure 10.24. An accurate data type selection is very important and can affect data consistency and database performance. This column can be filled by data type number from 1 to 6, since there is no class no class 7 or 4.5.
Before that, we need to look at the relationship between the writer and the book in the real world.
SUMMARY
EXERCISES
GLOSARY
HTML lat version (4.01) that rewrites according to strict and tight rules with the term XML Extensible Markup Language (XML). A discipline science that explains all aspects of software production starts from the first step that analyzes the user requirement, to ensure the user requirement specification, design, codes, test to maintain the system after use. Elements like database, software, hardware and user interacting with each other to achieve certain goals, that is data organization.
Cut of Code program which can take parameter input and result in one or more parameter output and use for operation database.
SITE LIST
FUNCTIONS BUILD-IN ON VISUAL BASE
1
2
3
4