Baton Rouge Community College Academic Affairs Master Syllabus

advertisement
Baton Rouge Community College
Academic Affairs Master Syllabus
Date Approved or Revised: February 23, 2012
Course Name: Object - Oriented Programming (Java)
Course Number: CSCI 290
Lecture Hours: 3
Lab Hours: 0
Credit Hours: 3
Course Description: Introduces the student to the fundamentals of Java programming using an
object-oriented paradigm. Emphasis is placed on writing Java applications and Java applets,
creating graphical user interfaces, object-oriented programming, event handling, writing
animations with audio and images, and writing network programs. Students will be expected to
create Java applets, and embed the Java applets in web pages. The student is prepared to develop
real-world projects using Java.
Prerequisites: CSCI 194
Co-requisites: None
Suggested Enrollment Cap: 25
Learning Outcomes: Upon successful completion of this course, the students will be able
to:
1. Discuss strengths and weaknesses of the Java language.
2. Explain the basic concepts of object-oriented programming
3. Write applets to run in web browsers.
4. Import Java packages.
5. Create classes.
6. Instantiate objects
7. Overload constructors and other methods.
8. Use variable and constants.
9. Format numeric output.
10. Employ mouse and other listeners.
11. Apply layout managers, and increment and decrement operators.
12. Utilize conditional statements, loops, check boxes and option button.
13. Create lists and arrays.
Assessment Measures: Assessment of all learning outcomes will be measured using the
following methods:
1. Homework and class assignments.
2. Student created Java application.
Information to be included on the Instructor’s Course Syllabi:

Disability Statement: Baton Rouge Community College seeks to meet the needs of its
students in many ways. See the Office of Disability Services to receive suggestions for
disability statements that should be included in each syllabus.

Grading: The College grading policy should be included in the course syllabus. Any
special practices should also go here. This should include the instructor’s and/or the
department’s policy for make-up work. For example in a speech course, “Speeches not
given on due date will receive no grade higher than a sixty” or “Make-up work will not
be accepted after the last day of class.”

Attendance Policy: Include the overall attendance policy of the college. Instructors may
want to add additional information in individual syllabi to meet the needs of their
courses.

General Policies: Instructors’ policy on the use of things such as beepers and cell phones
and/or hand held programmable calculators should be covered in this section.

Cheating and Plagiarism: This must be included in all syllabi and should include the
penalties for incidents in a given class. Students should have a clear idea of what
constitutes cheating in a given course.

Safety Concerns: In some programs this may be a major issue. For example, “No
student will be allowed in the safety lab without safety glasses.” General statements such
as, “Items that may be harmful to one’s self or others should not be brought to class.”

Library/ Learning Resources: Since the development of the total person is part of our
mission, assignments in the library and/or the Learning Resources Center should be
included to assist students in enhancing skills and in using resources. Students should be
encouraged to use the library for reading enjoyment as part of lifelong learning.
Expanded Course Outline:
I.
Introduction / Introducing Java / Java Applets
A. Recognize the strengths of the Java programming language.
B. Understand the uses of Java for applets and applications.
C. Use the import statement to incorporate Java packages into your code.
D. Declare and add components to an interface.
E. Modify text using the Color and Font objects.
F. Write an applet and run it in a browser or applet viewer.
II.
Using Variables and Constants
A. Use multiple forms of constructors.
B. Add buttons and text fields to an interface.
C. Use variables to store information.
D. Input data into a text field.
E. Display multiple lines of output in a text area.
F. Obtain and display the system date.
G. Capture user actions with a listener.
H. Add event handling for a button and text field.
I. Incorporate mouse events.
III.
Designing the Interface With Layout Managers
A. Position components on the interface.
B. Use the setLayout method to select the layout manager.
C. Place equally sized components in rows and columns with the GridLayout
manager.
D. Arrange components using the BorderLayout manager.
E. Create more flexible displays with GridBagLayout and GridBagConstraints.
F. Design multiple pages to display one at a time with the CardLayout.
G. Use Panels to combine multiple layouts on one applet.
IV.
Performing Calculations and Formatting Numbers
A. Perform calculations using the arithmetic operators.
B. Calculate and assign the result using the assignment operators.
C. Add and subtract using the increment and decrement operators.
D. Perform multiple calculations correctly based on the precedence of
operators.
E. Retrieve string data from the screen and convert to numeric for calculations.
F. Convert between data types both implicitly and explicitly.
G. Find the formatting rules for the locale where an applet is run.
H. Format output for currency, percent, or decimal numbers.
I. Catch input and calculation errors by using exception handling.
J. Declare variables based on the numeric wrapper classes and perform
operations
using the methods of the classes.
V.
Creating Classes Understand more thoroughly the characteristics of object-oriented
programming.
A. Know when to appropriately use private and public variables and methods.
B. Create your own classes.
C. Instantiate objects of your class.
D. Write methods that return values and accept input values.
VI.
Using Lists, Choices, and Looping
A. Create and use a List object.
B. Update lists by using the add, remove, and removeAll methods.
C. Determine which item in a list is selected.
D. Use the getItemCount method to determine the number of items in a list.
E. Display a selected item from a list.
F. Use the Choice class to create a drop-down list.
G. Create program loops using do, while, and for statements.
H. Use the JList and JComboBox Swing components.
VII.
Arrays
A. Establish an array of variables and refer to individual elements in the array
with
B.
C.
D.
E.
F.
G.
H.
variable subscripts.
Use a for loop to step through an array.
Use a loop to look up a matching value in an array.
Accumulate totals using array elements.
Distinguish between direct access and indirect access of a table.
Combine the advantages of list objects with arrays.
Store data in multidimensional arrays.
Create and use an array of objects.
IX.
Applications, Frames, Menus, and Dialogs
A. Write a Java application.
B. Use a Frame object to create a window.
C. Add a menu bar, menus, and menu items to a frame.
D. Place separators between menu items.
E. Disable menu items at design time.
F. Use the CheckboxMenuItem to allow a menu item to contain a check mark.
G. Create submenus.
H. Handle menu events.
I. Exit an application.
J. Display a dialog.
K. Use multiple frames.
L. Create a popup menu.
M. Write a Swing application.
N. Convert an applet into a program that can run as an application or an applet.
X.
Multimedia in Java: Images, Sounds, and Animation
A. Enhance your applet with graphics and sound.
B. Draw graphics on a container using the paint method.
C. Load an image file into a project.
D. Generate sounds with the play method.
E. Create animation using multiple images, moving images, and animated .gif
files.
XI.
More OOP, Interfaces, and Inner Classes
A. Create your own interfaces.
B. Identify the types of inner classes available in Java.
C. Understand and use inner classes.
XII.
Storing Information, Object Serialization, and JDBC
A. JavaScript Understand the purpose of streaming classes.
B. Use the System class for input and output to standard devices.
C. Save an object to a file.
D. Retrieve an object from a file.
E. Retrieve information from a database using the JDBC API.
F. Write SQL Select statements to create a ResultSet.
G. Use SQL action queries to update an existing database.
Download