0% found this document useful (0 votes)
8 views

Visual Programming I

Uploaded by

Hayat Hyt
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Visual Programming I

Uploaded by

Hayat Hyt
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Program BCS (Hons) – VI

Course Name Visual Programming-I


Course Code CS-606

Prerequisite Programming Language-I

Programming Language-II

Department Computer Science

Credit Hours 04

Total Weeks 16

Total Hours 48

Course Description:

The objectives of this course is to Develop error-free, well-documented Java programs; test Java
servlets while developing Java programs which incorporate advanced graphic functions. Learn
how to write, test, and debug advanced-level Object-Oriented programs using Java.

Week 1 History of Computers

Anatomy and history of computers and programming

Week 2 Introduction to Java, Applets, libraries, Compiler, interpreter and virtual machine,
Simple classes, objects and method calls, Static methods, “Hello, World!” program,
Basic syntax of Java.

Week 3 Comments

Three basic error types

Primitive data types, Strings, and casts

Constants, “final” keyword

Assignment statements

Simple math, Math methods [e.g. Math.pow()]

Edit – compile – test loop


Week 4 Using BreezyGUI for Graphics and GUIs

Frame, Label, Button

IntegerField, DoubleField, TextField

“add” methods: addIntegerField, addDoubleField, addTextField

the “buttonClicked” method

reading input from the console window using the Console class

using the graphics methods [e.g. drawRect(), drawString()] to draw

7. “messageBox()” to pop up a message.

Week 5 Strings

“new” operator to create a String

String methods [.length(), .substring(), .toLowerCase(), .toUpperCase()]

concatenation

conversion of Strings to numbers [Integer.parseInt(), Double.parseDouble()]

in BreezyGUI, using .setText() and getText() to work with TextFields

Week 6 Introduction to Objects and Classes

Using and constructing objects, new

Encapsulation, private vs. public sections

Making method calls, using static methods, defining methods

Object variables, import, return

Testing a class, instance fields, constructors, implicit vs. explicit variables

Design of the public interface of a class, implementing class.

Week 7 Quiz

Week 8 Repetition

1. FOR loops
2. WHILE loops: counters, sentinel values, accumulators

3. Nested loops

MID TERM EXAMINATION


Week 9 Arrays

1. basic array operations: reading in, printing out, summing, changing eachelement

2. passing an array to a method, returning an array from a method

3. two-dimensional arrays

4. algorithms for two-dimensional arrays.

Week 10 Event Handling

Week 11 Introducing the AWT: Working with Windows, Graphics, and Text

Week 12 Using AWT Controls, Layout Managers, and Menus

Week 13 Handling Images

Week 14 New I/O, Regular Expressions, and Other Packages

Week 15 Assignment and Presentations

Week 16 Revision

Methodology:

The teaching methodology is based on the use of PowerPoint slides, practical case handouts and white
board lecture.

Grading and Evaluation:

The subject will be considered failed if the student gets below 55 mark in it. While semester will be
considered failed if a student gets less than 60% marks overall.

GRADING TABLE

90 and above A

80-89 B

70-79 C
55-69 D

Less than 55 F

EVALUATION

Evaluation of the student is done by exams conduction, assignment and quizzes. Their weigh age is given
as below.

Total Marks 100

Quiz 5%

Attendance 5%

Assignment 5%

Presentation 5%

Mid term 20%

Final Examination 60%

Recommended Books:

1. Java 2 Standard Edition by Herbert Shildt


2. Computing Concepts With Java Essentials, 3rd Edition, by Cay Horstmann, John Wiley &
Sons, 2003, ISBN 0-471-24371-x, 846 p.
3. B. Karel J. Robot, object-oriented robot-simulation software.

You might also like