Programming Fundamentals With Java Course Guide Final
Programming Fundamentals With Java Course Guide Final
TCC 121/05
Course Guide
COURSE TEAM
Course Team Coordinator: Dr. Bong Chin Wei Content Adapters: Mr. Clarence Goh, Dr. Bong Chin Wei and Dr. Sivakumar s/o Ramakrishnan Instructional Designers: Professor Dr. Ng Wai Kong and Ms. Marsyitah Ismail
COURSE COORDINATOR
Dr. Sivakumar s/o Ramakrishnan
PRODUCTION
Editor: Mr. Terence Too Yang Yau In-house Editor: Mr. Khoo Chiew Keen Graphic Designer: Ms. Chrisvie Ong
Wawasan Open University is Malaysias first private not-for-profit tertiary institution dedicated to adult learners. It is funded by the Wawasan Education Foundation, a tax-exempt entity established by the Malaysian Peoples Movement Party (Gerakan) and supported by the Yeap Chor Ee Charitable and Endowment Trusts, other charities, corporations and members of the public. The course material development of the university is funded by Yeap Chor Ee Charitable and Endowment Trusts.
Wawasan Open University Jalan Sultan Ahmad Shah, 10050 Penang. Tel: (604) 2289323 Fax: (604) 2279214 Email: [email protected] Website: www.wou.edu.my
ACKNOWLEDGEMENT
Published by Wawasan Open University 2007. This edition has been revised by Wawasan Open University from the course MT 201 Computing Fundamentals with Java developed by The Open University of Hong Kong with the permission of the owner.
Contents
Course Guide
1.0 Studying at WOU using the distance learning mode 2.0 How to succeed as a distance learner 3.0 The course A brief introduction
About this course Course organisation Objectives Outcomes Course assessment Course delivery Course materials and student support Content adapter profiles 1
5 5 8 8 9 11 11 12 14
15 15 15 16 17
19 19 19 19
20 20
21
23
COURSE GUIDE 1
awasan Open University (henceforth abbreviated as WOU) welcomes you to be a member of the community of learners. Advancing your education is one of the most important investments that you can undertake. Hence, it is crucial that you choose the right university to suit your needs. WOU wishes to assist you in your decision making. In this section, we will provide a brief account on how learning takes place at WOU and also how you can work and study simultaneously. WOU has adopted the open distance learning mode as a key element to facilitate the implementation of programmes that will provide you with opportunities for lifelong learning. Our flexible learning programmes will meet the needs of working adults who are unable to study on-campus full-time five days a week for four to five years and yet yearn for an accredited qualification or personal interest enrichment without leaving their homes and jobs. While learning at WOU, you will be supported by comprehensive self-instructional materials that are well-designed and expertly written, an effective Learning Management System (LMS) and a sound tutorial system. WawasanLearn is a software application that uses computer programs to organise your coursework and to also monitor your records and progress. WawasanLearn will guide you through all the stages of your learning life cycle (e.g., assess, learn, reinforce, support and validate) to create the most effective learning experience for you. Tutorials are usually held at nights or weekends at either the WOU campus or at strategically located and well-equipped Regional Offices. You can attend your tutorials at the Learning Centre closest to your residence. A schedule of tutorials will be sent to you at the beginning of each semester. These sessions provide a platform for you to clarify any queries regarding your courses with your tutor and for you to exchange ideas with your coursemates. This would certainly boost your study skills and self-confidence. Your achievement in our courses will depend on your performance in both the continuous assessments and the final examination. In some cases, your attendance at the compulsory day schools or laboratory sessions may also be considered. Studying in an open distance learning environment for an award or qualification demands great commitment from you. Although WOU provides you with a flexible way of learning, you are required to complete assignments and sit for examinations according to the schedule that has been specified.
In general, besides attending face-to-face tutorials, you should be able to allocate at least 6 hours weekly to study a course. If you are a working adult, it is advisable to discuss your intention to further your studies with your employer as well as with your family members as their feedback can assist you in your decision. Their support will greatly enhance your chance of success.
COURSE GUIDE 3
pen distance learning (ODL) is the system of education in which education is imparted to learners from a distance. The two (2) basic elements in ODL are: 1. The physical separation of instructor and learner. 2. The changed role of the tutor who meets learners only for selected tasks such as counselling, conducting tutorials and collaborating with learners to solve their problems.
In the conventional educational system, teaching content is communicated by the instructor mainly by word of mouth. In distance education, this interpersonal communication is replaced by print, telephone, electronic communication (such as teleconference, audio and video systems), broadcasting, online communication and others. For you, the overriding benefit of ODL is that it gives you access to education that you would not have otherwise. Only a minority of adults can afford to stop work in order to further their studies. ODL allows you to study when and where it suits you and enables you to continue learning while fulfilling your commitments to family, work and community. You may be pursuing higher education for various reasons. You could be interested in changing careers or you might simply want to expand your knowledge base for work or personal reasons. You might even want to pursue a degree programme that was postponed due to family or career needs. In this regard, ODL is able to cater to your needs as you may not have the time, financial resources or educational background to be a full-time student on campus. Thus, distance education is a means to deliver accessible and affordable education to you. It is important for you to bear in mind that in ODL you are not working alone on your journey to a degree. We encourage you to make full use of the facilities and opportunities during your study at WOU especially in getting to know fellow students with whom you can work to achieve your dreams and aspirations. You should always make an attempt to attend all scheduled tutorials, form study groups with your coursemates, check for latest updates on WawasanLearn, participate in e-forums and contact your tutors. Your tutors are there to help you understand the course materials, to clarify any subject matter you have difficulty following and to collaborate with you to enhance your learning experience. They are not there to give a lecture or to answer your assignment questions for you. The email address and telephone number of your tutor will be provided. Try to obtain your tutorial coursemates email addresses and telephone numbers so that you can work together. An active learning community promotes your successful completion of the course.
COURSE GUIDE 5
3. Completing the self-tests and activities that appear throughout the units. These will require you to think, observe or undertake some activity that is designed to help you apply the knowledge you have gained. 4. Completing the assignments. The average estimated time that you need to spend in this course is about six to seven hours per week (averagely one hour a day). This estimation includes time for reading the study units and textbook, completing self-tests and practice exercises, completing your assignments, undertaking the suggested reviews, attending tutorials and preparing for your final examination. The course materials complement the textbook by presenting some of the more difficult concepts in an alternate (and often simplified) way to help you understand them. You should remember that the study units are not meant to replace the textbook, which is a good source of information in the course. As a reminder, it is important that you complete and hand in your written assignments on time. You need to bear this in mind when you are planning your study time. You can find more information on assignments in a later section of this Course Guide.
3.
Audio
4.
Case Study
COURSE GUIDE 7
5.
Feedback
Great! You have completed the exercises and we hope you have got them right. Here is an example of the suggested answers. If you have most of these keywords, you have done well! Fill in the blanks using the phrases listed in the box (you may use the phrases more than once): be over give up call back put through hang up
6.
Grammar
1. Could you in a moment? Ill check if she is around. 2. Dont 7. Multimedia on me, I will .
Run the Flash file uploaded to WawasanLearn and answer the following question . Submit your answer to the tutor through your tutorial discussion board. Please read How monopolies make produc tion and pricing decisions on pages 318 325 of your textbook. The description about the e-filing system in section 2.1 that you have just read is a useful guide for you to answer question 2b of TMA 2. Please attend to TMA 2 as soon as you can. Answer the following questions using your own words. Please do not look at the suggested answers at the end of this unit until you have completed this self-test. It takes enormous effort and great soft skills to placate an irate phone-in customer. You need patience and diplomacy to reduce the anger expressed and to persuade the irate customer to become a satisfied customer. This section discusses some of the many strategies at your disposal. Hi! I am Roger, your tutor for WOU 333 I called to check if you have received my email about as I am awaiting your confirmation about the group meeting the following week. OR Make an effort to call your tutor within the next two weeks and see if he/she has any new guidance for you.
8.
Reading
9.
Reminder
10.
Self-test
11.
Summary
12.
Telephone Feedback
13.
Tutorial
Please use the following question to prepare for your next tutorial: Elaborate on the FOUR major economic activities considered essential for the New Economic Policy to succeed within 20 years.
14.
Video
Load the VCD provided with the course materials and open the file xyz.wma. Play the video and answer the questions in section 3.8 on page 53 of your course materials. Inferring the meaning of words Look at the underlined words in the passage above. Match each word with its corresponding synonym. The first one has been done for you. To know more about Malaysias New Economic Policy, try browsing the Web by typing the keywords or log onto the following website: http://members.tripod.com/formulapm/ razak2.html
15.
Vocabulary
16.
Web Reference
Course organisation
Unit 1 2 3 4 5 Title Introduction to computer concepts and Java programming Introduction to objects and basic elements of Java Control structures Arrays Applications of arrays Total Weeks 3 4 4 4 3 18 50% TMA 1 (10%) TMA 2 (20%) TMA 3 (20%) Assessment activity
Objectives
The objectives of this course are to: 1. Describe the fundamental concepts in hardware and software. 2. Explain and analyse problems and produce software designs to handle these problems using simple object-oriented programming methodology. 3. Illustrate objects construction and differentiate primitive data types and classes and perform simple data manipulation using Java.
COURSE GUIDE 9
4. Apply major components in programming such as sequence, condition and iteration to develop applications using Java. 5. Use arrays and apply advance control structures in the applications to produce solution designs for problems using Java programming.
Outcomes
TCC 121/05 aims to help you to develop your basic programming skills at the university level. It introduces to you the concepts that will help you understand what programming is and how to produce a piece of program codes that is appropriate for common problem solving. In addition, this course adopts a practical approach to programming skills that you can apply in real-life situations when you use the Java programming language. The course has short-term and long-term outcomes. Immediately upon completion of the course and its associated exercises, you would be confident to comment on and be capable of analysing simple daily programs through implementation of object-oriented programming methodology. You should be capable of writing short programs to perform routine tasks using Java. You should be able to: 1. State the fundamental concepts in hardware and software 2. Explain to analyse problems and produce software designs to handle these problems using basic object oriented programming methodology. 3. Illustrate objects construction and differentiate primitive data types and classes and perform simple data manipulation using Java. 4. Apply the programming major components like sequence, condition and iteration to develop applications using Java language; 5. Describe the use of arrays in manipulating a collection of data. 6. Apply advance control structures in the applications to produce solution designs for problems. 7. Design array based algorithmic solution using searching, sorting, multidimensional tabulation or recursion.
The tutor-marked assignments, (TMA) and examinations are designed to test you and facilitate your progress. To complete the course successfully, you are required to pass both the continuous assessment and the final examination. Table 1.0 shows a detailed suggested weekly reading and continuous corresponding assessment.
Week 1
Lesson to Study Course Guide Section 1: Problems and computer solutions Section 2: Basic computer structure Section 3: Programming languages Section 4: The Java programming language Section 1: Classes and objects Section 2: Objects in the Java programming language Section 3: Manipulating objects Section 4: What can Java programs manipulate? Section 5: Manipulating data Section 1: Program execution order and simple relational expressions Section 2: Complex relational expressions Section 3: Branching or selection Section 4: Looping
Tutorial T1
Assessment
T2
TMA 1 due
Section 1: Why are arrays needed? Section 2: Arrays of objects Section 3: Multi-dimensional arrays Section 1: Searching Section 2: Sorting Section 3: Recursion Revision Revision Specimen exam paper Past year exam paper T5 T4 TMA 3 due T3 TMA 2 due
COURSE GUIDE 11
Course assessment
This course is designed to help you move easily from the stated objectives through the required readings, self-tests, practice exercises and tutor-marked assignments (TMAs) to a final examination. In an assessment, you will be expected to: 1. Demonstrate comprehension of the concepts you have learnt in the course. 2. Integrate course concepts and knowledge with your own experience and observations. 3. Apply course concepts you have learnt in the course to a variety of situations.
The TMAs and an examination are designed to test and facilitate your progress. To complete the course successfully, you are required to pass both the continuous assessment and the final examination.
Course delivery
Textbook
Malik, D S (2008) Java Programming: From Problem Solving to Program Design, 3rd edn, USA: Thomson Course Technology. or Malik, D S (2005) Java Programming: From Problem Solving to Program Design, 2nd edn, USA: Thomson Course Technology. [The textbook indicated in the Readings of the five study units refers to this book.]
Supplementary readings
1. Shelly, G B, Cashman, T J, and Vermaat, M E (2004) Discovering Computers 2006: A Gateway to Information, International Student Edition, USA: Thomson Course Technology. 2. Morelli, R (2003) Object-Oriented problem Solving Java, Java, 2nd edn, New Jersey: Prentice Hall. 3. Britton, C and Doake, J (2000) Object-Oriented Systems Development, A gentle introduction, USA: McGrawHill. 4. Deitel/Deitel (2003) Java How to Program, 5th edn, New Jersey: Prentice Hall. 5. Decker, R (2000) An Introduction to Programming Using Java/With Lab Manual, 2nd edn, USA: PWS Publishing Co. 6. Loftus, L (2000) Java Software Solutions: Foundations of Program Design, 2nd edn, USA: Addison-Wesley Publishing.
Additional readings may be taken from journals, magazines and other books. These may be given in the form of hard copy or uploaded to WawasanLearn. You will also be supplied with the necessary web addresses for readings and listening activities from the Internet.
Apart from WawasanLearn and tutorials, WOU is mindful of the need to support you throughout the course. Our Regional Offices are well-equipped and staffed to attend to your queries whenever they arise. We have Regional Office managers and tutors who will be glad to listen to you. The Regional Office staff will link you to the relevant person when there is a need. The Regional Offices have access to the WOU campus in Penang and are also able to contact the Course Coordinator when required to do so.
COURSE GUIDE 13
Self-help groups
You are advised to organise informal meetings between your coursemates from the same tutorial group. We want to emphasise the benefits of such activities as the collaboration and interaction will be most useful in supporting your efforts to complete your TMAs and to form a learning community. These meetings which are purely voluntary provide a way for you to help one another.
Online support
1. http://java.sun.com/docs/books/tutorial/index.html 2. http://www.webreference.com/programming/java/tutorials.html 3. http://math.hws.edu/javanotes/ 4. http://www.apl.jhu.edu/~hall/java/Java-Books.html#Java-Books-Tutorials2 5. http://oopweb.com/Java/Documents/JavaNotes/VolumeFrames.html 6. http://www.cafeaulait.org/course/ 7. http://apex.vtc.com/java.php 8. http://chortle.ccsu.ctstateu.edu/CS151/cs151java.html
COURSE GUIDE 15
Tutors
The appointed tutors will: Conduct tutorials. Assess students TMA answer scripts. Be available at designated times for online consultation and by telephone (if necessary) with students.
Tutors are your first point of contact with WOU. If you need any information or have any problems, please speak to the tutors before contacting the Course Coordinator.
Diagnostic tool
Course Self Tutorials TMAs Library Telephone Wawasan- Total materials -study research consultation Learn hours Course Guide Unit 1 Unit 2 Unit 3 Unit 4 Unit 5 Total hours 2 18 20 20 20 20 100 0 2 3 3 3 2 13 0 10 10 5 5 0 30 0 1 1 1 1 0 4 0 1 2 2 2 1 8 0 10 10 10 10 5 45 2 42 46 41 41 28 200
TMA policy
The assignment policy of the University as stated in the Student Handbook should be observed. You are required to submit the TMAs for a course in accordance with the dates communicated by the Course Coordinator. You may apply for a submission extension on the grounds of illness, accident, disability, bereavement or other compassionate circumstances. Applications for extensions of up to seven days should be submitted to the tutor. The tutor shall consider valid and unexpected emergencies on an individual basis. Normally, documented proof of the extenuating circumstances is not required for extensions of up to seven days. The tutor shall decide and advise you of the revised date for submission.
For extensions of over seven days, you should note the following: 1. If you require an extension of more than seven days on the grounds of illness, accident, disability, bereavement or other compassionate circumstances, you are required to inform your respective tutors of your request and also fill in the T-EX (Application for TMA Submission Extension) Form. The form will have to be submitted to your Course Coordinator or the Dean.
2. Supporting documents must be submitted with the application for extension of over seven (7) days to justify the claim.
3. Applications for extension should normally be lodged before or on the due date.
COURSE GUIDE 17
4. Applications are considered by: The Course Coordinator for extensions of 8 to 14 days. The Dean for extensions of up to 21 days.
If the TMA is posted to the tutor, you need to check that the TMA has been received by your tutor (for instance, confirmation through telephone or email). Applications for extension without supporting documents on the grounds of postal loss will not be accepted. WOU cannot accept any responsibility for TMAs that are not received by your tutor due to problems with the postal service. As a precaution, you are advised to keep a copy of each TMA you submit and obtain a certificate of posting from the post office when you post your TMA. According to WOU policy, there is no extension of the deadline for TMA 3 submission.
2. Submissions must be in accordance to the file format which is likely to be Microsoft .doc, .ppt or .xls as stated in your TMA instructions. a. Failure to do so may result in that TMA not being marked by your tutor. b. Do not submit your file in .pdf format. c. If you need to submit more than one file, zip the files in a folder. d. The maximum file size for any attachment is 3 megabytes. Please avoid sending a huge file containing graphics. Files exceeding 3 megabytes will not be delivered by the system.
3. For online TMA submissions, you need not fill in the manual 3-ply T-MA Form.
4. For late TMA submissions, you must submit the approved TMA extension form (i.e., the T-EX Form) to your tutor either manually or electronically. The TMA extension procedure applies.
5. The deadline for TMA submissions will be as stipulated and the closing time for online submissions will be set at 12 midnight of the same stipulated date. You are advised to submit your TMAs early to avoid any unforeseen circumstances.
6. Once each TMA is successfully submitted to your tutor via the OAS system, you will receive a notification via email. You do not have to submit the hardcopy as a back-up copy to the Regional Office.
7. You will be informed by email when the TMA results are available. Please check your WOU email account regularly.
COURSE GUIDE 19
Examination
The final examination contributes 50% of the total course marks. The examination of three hours duration consists of multiple choice questions, structured questions and essay questions. The overall assessment will be constituted as follows:
Type TMA 1 TMA 2 TMA 3 Final examination Total course marks Weightage 10% 20% 20% 50% 100%
Examination policy
You are required to attend all scheduled examinations that make up a final grade at the appointed time and place. Students who are experiencing illness or a personal crisis and are unable to sit for any examination have to state [in writing] to the Registrar the reasons for their absence. Each submission must be supported by valid documents within seven (7) days from the date of the examination and will be considered by the University on its merits and on a case-by-case basis. If you miss a scheduled examination without approval, you will be awarded zero marks for the examination.
Passing marks
To pass a course, you need to pass both components. You have to achieve at least 40% in the continuous assessment component as well as in the final examination component. Your performance in these two components will determine your total score for the course. For LAN courses, you would need to achieve at least a 50% total score to pass.
COURSE GUIDE 21
Software Windows 98 Second Edition or newer version. Web Browser: Netscape 4.78 or Internet Explorer 5.0, or compatible. Word Processor: Microsoft Word or WordPad. OpenOffice is available from the Internet. Note: The hardware configuration above is the bare minimum. The Java Software will be provided by WOU or you can download it from the official Java website.
COURSE GUIDE 23