Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu https://xliu12.mysite.syr.edu/

Slides:



Advertisements
Similar presentations
ISecurity GUI User-Friendly Interface. Features Full support of all green-screen functionality Simultaneous views of multiple iSecurity screens and activities.
Advertisements

DATA STRUCTURES Lecture: Interfaces Slides adapted from Prof. Steven Roehrig.
INTERFACES IN JAVA 1.Java Does not support Multiple Inheritance directly. Multiple inheritance can be achieved in java by the use of interfaces. 2.We need.
Name Matrix No CHIA EE LOON(LEADER) OW CHEE YEE LAURA TIONG UNG KAH CAT200 Integrated Software Development Workshop Storyboard.
© Dolinski This presentation will help you with the database section of your coursework. It will cover: – What you need to do.
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu
Elevens Lab Student Material – on website
Designing Classes Chapter 3. 2 Chapter Contents Encapsulation Specifying Methods Java Interfaces Writing an Interface Implementing an Interface An Interface.
POCKET KARAOKE FINAL PRESENTATION Daniel Kirschner David Pinho.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter N - 1 Polymorphism.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter N - 1 Chapter 13 Polymorphism is-a relationships Interfaces.
1 Introduction to CS Agenda Syllabus Schedule Lecture: the management of complexity.
Introduction to Data Structures, Spring 2007 Slide- 1 California State University, Fresno Introduction to Data Structure Object Oriented Programming Concepts.
Chapter 13: Object-Oriented Programming
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter N - 1 Chapter 13 Polymorphism is-a relationships Interfaces.
Applying OO Concepts Using Java. In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The.
Abstraction, Inheritance, and Polymorphism in Java.
3.1 Documentation & Java Language Elements Purpose of documentation Assist the programmer with developing the program Assist other programers who.
{ MUSIC APPS PROJECT BY JERELINE WEAH Digital music 9/17/14.
Introduction to database systems
8-1 Chapter 8 Using User-Defined Data Types and Object Oriented Programming.
COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.
CS212: Object Oriented Analysis and Design Lecture 4: Objects and Classes - I.
Final Year Project Interim Presentation Software Visualisation and Comparison Tool Presented By : Shane Lillis, , 4th Year Computer Engineering.
1 Java Inheritance. 2 Inheritance On the surface, inheritance is a code re-use issue. –we can extend code that is already written in a manageable manner.
Web Programming Assistant Professor Xiaozhong Liu
Object Oriented Programming: Java Edition By: Samuel Robinson.
1. 2 Object-Oriented Concept Class & Object Object-Oriented Characteristics How does it work? Relationships Between Classes Development Tools Advantage.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 6 Value-Returning.
REVIEW On Friday we explored Client-Server Applications with Sockets. Servers must create a ServerSocket object on a specific Port #. They then can wait.
Programming Pillars Introduction to Object- Oriented Programming.
Lecture 8: Object-Oriented Design. 8-2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET Objectives “Good object-oriented programming is really.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Inheritance Inheritance: –1 of 3 main features of OOP –Form of software reusability –(Derived)
More on Hierarchies 1. When an object of a subclass is instantiated, is memory allocated for only the data members of the subclass or also for the members.
Refactoring Deciding what to make a superclass or interface is difficult. Some of these refactorings are helpful. Some research items include Inheritance.
Data Structures Using C++ 2E1 Inheritance An “is-a” relationship –Example: “every employee is a person” Allows new class creation from existing classes.
Introduction to LINQ Chapter 11. Introduction Large amounts of data are often stored in a database—an organized collection of data. A database management.
An Introduction to Programming and Object Oriented Design using Java 3 rd Edition. Dec 2007 Jaime Niño Frederick Hosch Chapter 18 Integrating user interface.
Designing Classes Chapter 3. 2 Chapter Contents Encapsulation Specifying Methods Java Interfaces Writing an Interface Implementing an Interface An Interface.
Summing Up Object Oriented Design. Four Major Components: Abstraction modeling real-life entities by essential information only Encapsulation clustering.
Abstraction ADTs, Information Hiding and Encapsulation.
Interfaces Chapter 9. 9 Creating Interfaces An interface is a contract. Every class that implements the interface must provide the interface’s defined.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
Composition When one class contains an instance variable whose type is another class, this is called composition. Instead of inheritance, which is based.
Purpose of Operating System Monil Adhikari. Agenda Introduction Responsibilities of Operating System User Interfaces Command Line Interface Graphical.
Java Programming, Second Edition Chapter Twelve Advanced Inheritance Concepts.
Chapter 11: Advanced Inheritance Concepts. Objectives Create and use abstract classes Use dynamic method binding Create arrays of subclass objects Use.
Object Oriented Programming Session # 03.  Abstraction: Process of forming of general and relevant information from a complex scenarios.  Encapsulation:
Introduction to Objects and Encapsulation Computer Science 4 Mr. Gerb Reference: Objective: Understand Encapsulation and abstract data types.
In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The import statement and using prewritten.
CH10 Supplementary Material Prepared by Fatimah Alakeel Oct 2010.
COMPUTER SCIENCE & TECHNOLOGY DEGREE PROGRAMME FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UVA WELLASSA ‏ Properties of Object Oriented Programming.
CSC 243 – Java Programming, Spring, 2014 Week 4, Interfaces, Derived Classes, and Abstract Classes.
Practical Exam 2015 Dominic Gruijters. Format of the Practical Exam Question 1 40 marks SQL Question 2 80 marks Java and Delphi Programming No change.
SQL Basics Review Reviewing what we’ve learned so far…….
Software Construction Lab 05 Abstraction, Inheritance, and Polymorphism in Java.
Computer Programming II Lecture 5. Introduction to Object Oriented Programming (OOP) - There are two common programming methods : procedural programming.
Objects as a programming concept
Inheritance and Polymorphism
Encapsulation and Java Interface
Object-Orientated Programming
Introduction to LINQ Chapter 11 10/28/2015 Lect 4 CT1411.
Strings A collection of characters taken as a set:
Introduction to LINQ Chapter 11.
Applying OO Concepts Using Java
Object-Oriented Programming
2.1 Introduction to Object-Oriented Programming
Presentation transcript:

Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu

Student… public class student { private String First_name; private String Last_name; private int SUID; public String getName () { return First_name + " " + Last_name; } public int getSUID () { return SUID; }

Graduate Student… public class Graduate_student { private String First_name; private String Last_name; private int SUID; private String Advisor; private String Research_area; public String getName () { return First_name + " " + Last_name; } public int getSUID () { return SUID; } public int getResearchArea () { return Research_area; }

Relationship between classes… Inheritance, Polymorphism

Relationship between classes… public class Undergrad_student extends student { private String Major; public String getMajor () { return Major; } public abstract class student { protected String First_name; protected String Last_name; protected int SUID; public String getName () { return First_name + " " + Last_name; } public int getSUID () { return SUID; }

Relationship between classes… Manager Part_time Salesman Full_time Employee CEO

Final project (2-3 people team) Data Lead: Collect or make-up data for the file and design the file format UI Lead: Design and create the form for the user interface Lead Programmer: Write and debug the code Testing Lead: Test the code and user interface Documentation Lead: Write/check code documentation. Write the problem statement and report Everyone should understand the code very well, prepare for questions!!

You need…  Reading data from the file and storing into an array, whose elements are objects of a class  designed to fit the data  Searching the data, based on a user request  Sorting data  Multiple classes  Significant methods in the classes (not just accessor or display functions)  Additional Form Elements besides the ones we’ve already done  Using multiple forms for the user interface  Writing data to a file  (you may propose alternatives)

Example 1: Query log [Query string], [frequency] vietnam,12 myspace.co,27 myspace.com,1505 googl,13 files,14 jet blue airlines,12 verizon wireless,112 What are the most popular queries? Search the most popular queries? Extract search, fuzzy search… Sorting… Group similar queries? Friendly GUI User oriented search function

Example 2: Playlist [Name],[Artist],[Album],[Genre],[Year],[Number of play] Take it easy,Eagles,Eagles,Rock,1972,38 On Fire,Eminem,Recovery,Hip Hop,2010,18 How to generate (recommended) playlist by using [number of play], [favorite genre (mix)], [favorite artist (mix)], [favorite albums]? You propose your own rules. Show the most popular music, genre and artist by using sorting and searching… Write to playlist files… Friendly GUI User oriented search function

You are encouraged to use your own data!