Lecture 10 Program Documentation & Testing
There are many desirable features of a piece of software. We will concentrate on the following: maintainability; reliability; robustness; usability.
The waterfall approach
Until a few deca
The Swing package Lecture 9 Graphics and Event-handling
in the earlier versions of Java, graphical programming was achieved exclusively by making use of a package known as the Abstract Window Toolkit (AWT).; nowadays, graphics in Java is achieved v
Definition of Inheritance Lecture 8 Inheritance
The sharing of attributes and methods among classes. we take a class, and then define other classes based on the first one; the new classes inherit all the attributes and methods of the first one, but
Inside the CD class
when we design an instantiable class we must consider:
Lecture 7 Implementing classes
what data the class needs to hold (the attributes); what operations (methods) are needed to access that data.
the CD class will need to h
Structured programming Lecture 6 Classes and objects
structured programming was the first attempt at formally modularizing program code; now the program was no longer considered one large task, but a collection of smaller tasks; these tasks were c
How to create and handle a very large number of data items?
Lecture 5 Arrays
How to enter 7 temperature readings?
Try using a for loop?
What is an array?
An array is a data type that stores a collection of items. These items are sometime
Implementing Methods Lecture 4 Implementing methods
Introduction a method is a part of a class, and contains a particular set of instructions; so far all the classes you have written have contained just one method, the main method; normally, a met
Iteration is the form of program control that allows us to repeat a section of code.
Lecture 3 Control Statements - Iteration
For this reason this form of control is often also referred to as repetition. The programming structure that
Decision making and selection
Lecture 2 Control Statements - Selection
Programming languages like Java provide language constructs for making decisions in a program Until now, our simple programs have been sequential
These programs begin with the f
Lecture 11 Case Study
Implementing a small integrated application
A system will be developed to maintain records of the residents of a student hostel. We will look at the following stages
an informal description of the requirements; a specificatio