1-1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1-1 Programmering 7.5 hp Programmering är... creativ, fascinerande, roligt,

Slides:



Advertisements
Liknande presentationer
1.Numerical differentiation and quadrature Discrete differentiation and integration Ordinary.
Advertisements

Inte en webbdesign-kurs försöker få ett slags helhetsgrepp på hela medie- hypen/visionen fem inte helt oberoende spår: 1. cyberspace (vision) 2. multimedier.
2007 Microsoft Office System - Klienten Pontus Haglund Mid Market Solutions Specialist Microsoft AB.
DANIEL STEINHOLTZ, ”FRANKLY, WE NEED A REVOLUTION…” [ MAURICE STRONG AT STOCKHOLM +40 ]
i olika programmeringsspråk
Nya medier + nät = Cyberspace. Cyberspace en vision om ett universum av information och kultur, en gemensam, global, datorgenererad virtuell värld, med.
För att uppdatera sidfotstexten, gå till menyfliken: Infoga | Sidhuvud och sidfot Fondbolagsträff 2015.
Exempelbaserade specifikationer med SpecFlow
EN SENSATIONS-, AKTIONS, OCH INTERAKTIONSTEKNIK. KUNSKAPEN OMORGANISERAS.
Arkitektrollen. Ansvar och uppgifter Architecture notebook Mycket intensivt elaboration – inception Mål: en stabil arkitektur i slutet på elaboration.
Cross-institutional collaboration… Creating Knowledge IV 2006 Copenhagen Denmark Birgitta Hansson Örebro University Library Sweden.
 Who frågar efter en persons (eller personers) identitet (vem dem är).  Who is he?  Who are they?  Who is coming?
To practise speaking English for 3-4 minutes Genom undervisningen i ämnet engelska ska eleverna ges förutsättningar att utveckla sin förmåga att: formulera.
© 2007 Pearson Prentice Hall This work is protected by United States copyright laws and is provided solely for the use of instructors in teaching their.
© Gunnar Wettergren1 IV1021 Project models Gunnar Wettergren
“Be” (vara) i presens 1. I 2. You 3. He, she, it 1. We 2. You 3. They.
OOP&M - teori1 OOP&M – Föreläsning 3 kap 2-4 Repetition Föreläsning-datayper-syntax-tilldelning.
CHI-TSONG CHEN KAPITEL 2- Systems Kortfattade läsanvisningar Läs hela kapitlet utom 2.9 och 2.10.
Don´t just try! Do! Emma Nääs
Lab Contact 1  Lab Assistants:  Meng Liu, Group B  Sara Abbaspour, Group A
How To Use PowerPoint A Brief Introduction to Commonly Used Features By Ryan McKenzie.
IMPLEMENTING GENDER EQUALITY: SIMPLE METHODS INGENJÖRSKARRIÄR
Skolledardagen Platsen var Birger Jarl i Stockholm Jag var där och Eva-Lis Sirén Men även Ann-Marie Begler, GD Skolinspektionen Hennes råd till.
THINGS TO CONSIDER WHILE PLANNING A PARTY Planning an event can take an immense amount of time and planning. Even then, the biggest problem that arises.
STEPS TO FOLLOW FOR BECOMING A SHIP CAPTAIN A career as a ship captain can be a tedious task. Ship captains take care of business, navigation and operation.
SAFETY EQUIPMENT USED IN MARITIMEOPERATIONS One of the most important sections in maritime courses consists of boat and ship operations. Safety is an important.
Advice from Bronx Best Real Estate Attorney. Jagiani Law office of New York has been successfully working as divorce attorney & Real estate attorney for.
Digitization and Management Consulting
Why you should consider hiring a real estate attorney!
Law abiding grounds of filing a divorce Jagianilaw.com.
Objektorienterad programmering DAT050 DAI2 lp1 2017/2018
Tennis as they see it Research on attitudes to tennis of junior tennis players through gender perspective.
Mathematics 1 /Matematik 1
Hur man bokar klubbrummet i Skanstullshallen?
Bringapillow.com. Online Dating- A great way to find your love! The words ‘Love’ and ‘Relationship’ are close to every heart. Indeed, they are beautiful!
Work of a Family law attorney Jagianilaw.com. A Family Law Attorney basically covers a wide range spectrum of issues that a family may face with difficulty.
The Online Way to Engagement and Wedding Jewelry! Pearlleady.com.
Course info.
Meeting singles had never been so easy before. The growing dating sites for singles have given a totally new approach to getting into relationships. ‘Singles.
Varför MOOC? Trender: Globalisering Individualisering
Hoppas det här går hem ! Bildspelet vecka 3 5 BE ® BrucElvis
Formal Languages, Automata and Models of Computation
My role model.
Role of Divorce, Family Law and Commercial Attorneys.
Svarsfrekvensen i undersökningar från webbpaneler. Några resultat
Pearlleady.com Attractive Graduation and Wedding Gifts Online.
How to Buy Engagement Rings for Women Online?. Buying engagement rings for women or tiffany celebration rings from the online market could be a bit challenging.
Amazing Wedding/Bridal Jewellery & Gifts Available Online Pearlleady.com.
You Must Take Marriage Advice to Stop Divorce! Dontgetdivorced.com.
Objektorienterad programmering DAT050 DAI2 lp1 2016/2017
Changes version bakisakuten.se.
Titel på projektet Title of the project
Applying Analysis Patterns
Applying Analysis Patterns
Publish your presentations online we present SLIDEPLAYER.SI.
Publish your presentations online we present SLIDEPLAYER.RS.
Publish your presentations online we present SLIDEPLAYER.IN.
Publish your presentations online we present SLIDEPLAYER.VN.
Publish your presentations online we present SLIDEPLAYER.RO.
Publish your presentations online we present SLIDEPLAYER.EE.
Publish your presentations online we present SLIDEPLAYER.CO.IL.
Publish your presentations online we present SLIDEPLAYER.AE.
Publish your presentations online we present SLIDEPLAYER.BG.
Publish your presentations online we present SLIDEPLAYER.AFRICA.
Publish your presentations online we present SLIDEPLAYER.MX.
Publish your presentations online we present SLIDEPLAYER.LT.
Publish your presentations online we present SLIDEPLAYER.LV.
Publish your presentations online we present SLIDEPLAYER.SK.
Presentationens avskrift:

1-1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1-1 Programmering 7.5 hp Programmering är... creativ, fascinerande, roligt, användbart – och tidskrävande. E 304, Gör?, Är? Kursens hemsida:

1-2 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Vad är programmering? När vi vill att en maskin(processor) skall åstadkomma något åt oss använder vi en form av kod för att instruera maskinen om vad som skall utföras. För att processorn skall förstå de instruktioner som du vill ge måste de instruktioner som du ger vara i formatet ettor och nollor i en rad olika kombinationer. Det sliper vi idag genom att använda högnivåspråk (java) för att skriva instruktioner och sedan omvandla (kompilera) det till ettor och nollor ( maskin språk). Det moderna att programmera är objekt-orienterat, dvs man utgår ifrån den verkliga världen som består av objekt ( student, bord, stol) som har egenskaper ( namn, antal_ben, färg) och kan göra saker ( tänka, rotera, bytta_färg).

1-3 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Alice and Java Alice is a computer environment in which you create virtual worlds containing three-dimensional characters and objects that move and interact. Both Alice and Java use an object-oriented approach. Java is a general-purpose programming language. 1-3

1-4 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley The Alice Environment Alice is an integrated development environment (IDE) – a program used to create and run another program. Versions for Windows and Mac OS are available from the Alice website:  run a tutorial;  open a world that has been opened recently;  start a new world;  explore several example worlds;  open a world that has been stored.

1-5 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley The Alice Environment (continued) 1-5 toolbar world view events editor object tree details panel method editor

1-6 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Objects All objects contained in the Alice world are listed in the object tree. All Alice worlds have objects that represent camera and light source. Most worlds have a ground surface. Camera controls set the initial point of view. 1-6 The object tree The camera controls

1-7 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Classes An object is created from a class. Class determines the methods and properties the object has. Classes are organized into galleries. There are built-in galleries; they are also available through the Web. 1-7

1-8 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Methods A method is a set of statements that can be called. Methods define every object’s behavior. The world object in every animation has a method called my first method. There are several control statements available in Alice. Calling a method – sending a message to an object. Methods can accept parameters. 1-8 object parameters method

1-9 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Methods (continued) Built-in methods exist for almost all objects in Alice Other methods can be developed and added. Some useful methods are: –say –think –sound Special methods—functions are used to get some information about an object 1-9

1-10 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Properties Properties describe an object’s state at any point in time. The value of the property can be changed directly or during animation, using method call. There are hidden properties for the objects. 1-10

1-11 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Do Together Statement The Do Together statement allows several things to be done simultaneously. 1-11

1-12 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Do In Order Statement The Do In Order statement forces the statements it contains to be executed in order. 1-12

1-13 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Composite Objects A composite object is an object that contains other objects. It is possible to control the whole object or any of its parts. 1-13