Professional Documents
Culture Documents
Sumber: Chapter 10. System Analysis & Programming: S/W Development, Programming, & Languages, p.463 Williams, B.K, Stacy C. Sawyer (2007). Using Information Technology: A Practical Introduction to Computers & Communications. Seventh Edition, McGraw-Hill, New York. ISBN-13: 978-007-110768-6
Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu :
Outline Materi
Programming: Procedural
Clarify/define the problem Design the program Code the program Test the program Document and maintain the program
Programming: OOP
10-6
DO WHILE (SO LONG AS) THERE ARE RECORDS Read a customer billing account record IF todays date is greater than 30 days from date of last customer payment Calculate total amount due Calculate 5% interest on amount due Add interest to total amount due to calculate Grand total Print on invoice overdue amount ELSE Calculate total amount due ENDIF Print out invoice END DO END
10-7
PANEL 10.14 Example of a program flowchart and explanation of flowchart symbols This example represents a flowchart for a payroll program.
10-8
10-9
Message
The instruction received by the object indicating it is time to perform an action
Method
The processing instructions within the object to perform the specified action
10-13
Inheritance
One object can be used as the foundation for other objects Objects can be arranged in hierarchies classes and subclasses Objects can inherit actions and attributes from each other
Polymorphism
Allows a single definition to be used with different data types and different functions Means a message produces different results depending on the object it is sent to
10-15
Patio doors Have a slider slide open slide closed Notice we only list the actions & attributes when they differ from those of class
10-16
Then save the file on your desktop. Name it sample.htm Now open your internet browser and view it by clicking file open and navigating to your desktop
10-18
Markup & Scripting Languages So how did this Turn into this?
My name is
your name And I <body bgcolor = "yellow"> <h2> <p>My name is </h2> <b><i><font color=red>your name</font></i></b></p> And I <b><h1>love</h1></b> this class!!! </body>
The <body bgcolor = > tag defines the page color The <h2> tag means a heading of size 2 The <h1> tag means a heading of size 1 The <i> tag means to italicize the text The <b> tag means to bold the text The <p> tag means to start a new paragraph And the / inside a tag means to end that format There are a LOT of other HTML tags
10-19
love
this class!!!
By HTML tags
VRML
Virtual Reality Modeling for Markup Language is used to create three-dimensional web pages including interactive animation Requires special VRML browser to view those pages
10-20
Kesimpulan
24