Unformatted text preview:

Programming Sergio Ribeiro A To have a good understanding of the Tech Environment 1 B To be confident and able to develop a software in any language 2 Goals 01 17 10 00 11 00 01 24 10 00 12 00 02 04 10 00 12 00 C Develop in JAVA 3 D Develop a mobile App TBD 02 27 16 30 18 30 To be confirmed The Tech Environment History The evolution of the computer 1 The punched card machine Sergio Ribeiro Mechanicaly operated Programming was done by making perfurations in a card It was used for the textile industry to produce different color combinations 2 ENIAC Operated through eletronic valves Programming was done by connecting cables in a panel It was used by the army to calculate the bombs route Modern Computer Architecture proposed by John von Neumann Human central neural system based CPU HD RAM Processor Make calculations run tasks and process data HD Hard Drive static data RAM Random Access Memory volatile Each Memory position can store 8 bits 1 bit can be 0 1 2 possibilities That s why we use the word binary 0 Low level of energy 1 High level of energy 8bits 1byte 2 8 256 possibilities 00000000 0 00000001 0 0 0 0 0 0 0 1 2 0 1 00000011 0 0 0 0 0 0 1 2 1 1 2 0 3 Programming started by writing 0 s and 1 s similarly as the punched cards This numbers were stored in different memory positions and then combined regarding the operation wanted sum subtraction multiply ASSEMBLY Then they started creating nicknames to the operations for example sum operations add to make the programming more natural But with time they still believed they could make programming even more natural for the human and they started to create high level programming languages which means languages that are closer to the human natural language while Assembly is a language closer to the machine language zeros and ones Assembly is still used today to program certain devices because it s closer to the machine language Some Languages FORTRAN COBOL C PASCAL C JAVA C Visual Basic Readings https billatnapier wordpress com 2013 05 01 my history of computing http en wikipedia org wiki Assembly language NEXT DEVELOPMENT PROCESS Software Development Sergio Ribeiro The development process Flow and Tools Requirements Gathering Analysis and Technology Decisions Database Modeling Cloud Modeling Coding Testing Deploy Delivery Requirements Gathering Interviews Use cases Prototyping o Interviews Simply write all important information you can obtain from the interview Word Document is ok What is the user expectation What are the important information data What devices he expects to use How many users What are the important outputs Reports Emails etc o Use Cases software o Prototyping Exercise 1 1 Draw the use cases of a hello world Tool ForeUI Exercise 1 2 Install Fore UI and create a Prototype of a hello world software Analysis and Technology Decisions If the customer specifies the technology you just need to make sure that this technology is viable to develop the requirements If it s not viable make recommendations to the customer If the customer don t specifies the technology you select the most currently available and viable one Database Modeling Database Decision o SQL MySQL Oracle Postgre Firebird o Tool Rational Rose o Exercise 1 3 Create a data Model of a Hello World software o Postgre Setting up environment o Exercise 1 4 Create a Database for the Model above with o Queries Ex SELECT o Exercise 1 5 Create a Query to return the data in the table Postgre created Cloud Modeling Parse com o Create Account How to set up a primary key in MAC Postgres 1 CTRL Click in the Table Speech 2 Click Properties 3 Select the Constraints Tab 4 Select Primary Key and click add 5 Put the same name id speech 6 Click the Columns Tab 7 Select the column you want to be the PK id speech 8 Click Add Coding ALGOL program CompareNumbers var v1 v2 integer begin write Type a number read v1 write Type a number read v2 if v1 v2 then else if v1 v2 then write The numbers are equal write The first number typed is greater than the second write The second number typed is greater than the first else end if Exercise 1 Create a Hello World Exercise 2 Create an algorithm that sum two numbers entered by end if end user Internal Test Testing Homologation Test Production Test Unit Test o Tools NET N Unit Java J Unit Deploy The process to create an executable version of the software Process Coding Internal Test Homologation Test Production Test Unit Test Where Dev Environment Dev Machine IDE Second Developer Production Environment Simulation Production Environment JAVA What is Java Sergio Ribeiro Java is not only a Language but is also a Platform as will be explained later Little History Created by Sun Microsystems in 1992 the purpose was to develop applications to devices such as TV s appliances etc But it was too soon and the market wasn t ready for that When the Internet started to grow Sun realized that they could use that idea to run applications within the browsers It was when the Java Empire began In 2009 Oracle acquired Sun Microsystems Quick Video https www youtube com watch v WAy9mgEYb6o Virtual Machine The Virtual Machine was created to enable cross platform portability Other languages like Pascal for example the compiler creates the executable specifically to the Operation System it is running PA SC AL JA V A EXE Java Bytecode Operational System EXE VIRTUAL MACHINE Object Orientation CLASS Attributes Methods Others Inheriting Polimorfism Design Patterns KEYWORDS before exercise o Public Private o Static o Void the screen Exercise 3 Create an object Speaker which prints Hello World on Exercise 4 Create an object Speaker that has a method Speak which returns Hello World Exercise 5 Modify the object to return what comes in the parameter in other words to consider a input Exercise 6 Create an object Calculator with a method sum which returns the sum of two input numbers IDE Eclipse Installation Exercise 7 Replicate the objects already created with Java Exercise 8 Create an Interface with one text box and one button to ask the program to speak what is written in the text box Exercise 9 Include three more text box and one button to ask the program to sum the numbers in the first two text boxes and show the result in the third text box Accessing the Database Exercise 10 Create an interface with a text box and a button to save new speeches in the table Exercise 11 Include a Grid to show all the speeches in the DB Exercise 12 Create a textbox to filter the speeches


View Full Document

Stanford CS 106A - Programming

Download Programming
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Programming and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Programming 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?