Diferență între revizuiri ale paginii „Object Oriented Programming”

De la WikiLabs
Jump to navigationJump to search
Linia 64: Linia 64:
  
 
Sign-ups [https://docs.google.com/spreadsheets/d/1-o4SYpKb9ZduKfSp6-LW-yLbSpT6Wd9iuXFIGJauBE8/edit?usp=sharing here].
 
Sign-ups [https://docs.google.com/spreadsheets/d/1-o4SYpKb9ZduKfSp6-LW-yLbSpT6Wd9iuXFIGJauBE8/edit?usp=sharing here].
 +
 +
== Project for Lab Regrading 2014-2015 ==
 +
 +
The subject for the [[OOP Project 2014-2015]] has been published.

Versiunea de la data 21 iulie 2015 15:53

Lab Design and Purpose

The purpose of the Object Oriented Programming lab is to teach to the student the concepts of object oriented paradigm, assimilation of a new programming language, Java, as well as familiarization with specific programming techniques.

Attention: All the tasks in this lab start from the premises that you are already familiar with the C language synatx.


Attention: All of the files/ programs developed during each lab must be saved, either by e-mail or an USB stick.

Tutorials and Documentation

  1. The Object Oriented Paradigm; Classes and Objects. Notions About the Java Language. Writing and Executing a Java Program. Java Syntax; A Program's Lexical Structure. Java Coding Conventions.
  2. Advanced Notions About Object Oriented Programming. Java Application Programming Interface (API)
  3. Exception Handling. Input/Output Streams.
  4. Serialization. Network Sockets.
  5. Concurrent Programming - Threads.
  6. Graphical User Interface (GUI) - Java Swing.

Lab Tasks

  1. OOP Lab Task 1
  2. OOP Lab Task 2
  3. OOP Lab Task 3
  4. OOP Lab Task 4
  5. OOP Lab Task 5
  6. OOP Lab Task 6

Installation Tutorial for Java Developer's Kit

The installation kit required for compiling and executing a Java program can be downloaded from the Oracle website. Select Java Platform (JDK), in the next page select Accept License Agreement and then your operating system.

Windows Installation

For Windows, the file downloaded during the previous step should have an .exe extension. Run this executable file as you would do any other (with Administrator rights), select the default options and wait for the installation to finish. You can safely dismiss the installation of any browser plugins like "Ask Toolbar" or similar ad-ware.

Next, look for the directory in which the JDK has been installed and enter the bin sub-directory. Right-click on the current path and select Copy or Copy address as text. This should look similar to C:\Program Files\Java\jdk1.7.0_05\bin. Next, from Control Panel, select View advanced system settings, and in the window that opens, click Environment variables.... In System variables, look for Path, select it, then click Edit.... In the field Variable value, move the cursor to the end on the line, add a semicolon (;), then paste the path copied in the previous step. Click OK until all windows close.

To verify the installation, open a console (Start, type "cmd" then enter, or Start -> Run -> "cmd" <enter> for Windows XP) and type javac -version. If the reply is similar to javac 1.7.0_05, then the installation was successful, but if is instead 'javac' is not recognized as an internal or external command, operable program or batch file., then start over the previous steps and try again.

Linux Installation

For Ubuntu based Linux distributions, open a terminal and type the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Netbeans IDE Installation Tutorial

For all operating systems, follow the instruction on official website. Choose the Java SE installer for downloading.

Results

Project Presentation

The lab project presentation will take place on Saturday and Sunday (7 and 8 of February), according to the table below. People who sign up and participate in the presentation must be present ten minutes before the scheduled time so they can download the code from e-mail, compile and run the application.


In the table there are two slots for each time, because there will be two lab assistants evaluating the projects. Try and fill up the times and slots in order. The Sunday slots will be made available only after the Saturday ones are completely filled up.


Sign-ups here.

Project for Lab Regrading 2014-2015

The subject for the OOP Project 2014-2015 has been published.