unit 6 desktop applications. course objectives during this unit, we will cover the following course...

58
SD1230 Unit 6 Desktop Applications

Upload: aubrie-woodmancy

Post on 01-Apr-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

SD1230

Unit 6Desktop Applications

Page 2: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Course Objectives

During this unit, we will cover the following course objectives: Identify the characteristics of desktop

applications. Describe the differences and similarities

of desktop, website, and mobile technology.

Page 3: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Learning Outcomes

Completing this unit should help enable you to: Identify the characteristics of desktop

applications. Create a simple desktop application. Given a website or application, identify

characteristics that affect its usability on a desktop computer.

Compare the application development learning path for applications typically supported on desktop computers with the learning path for those found on mobile devices.

Page 4: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Learning Outcomes (cont.)

Use the programming IDE environment with Visual Basic 2010.

Understand how to create and modify a console-based application.

Understand the logic of decision programming with conditional and loop statements.

Understand how to create and modify a windows application with objects such as text boxes, buttons, and message boxes.

Page 5: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Desktop Applications

Applications you run on a laptop or desktop computer

Examples: Microsoft Office Graphics programs Integrated development environments

(IDEs) Games

Page 6: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Desktop Application Types

Graphical User Interface (GUI) Typically has one or more windows User interacts through menus, buttons,

and text fields Console application

User interacts by typing commands

Page 7: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Desktop vs. Mobile ApplicationsDesktop Mobile

Window size

Large and adjustable

Limited by screen size

User input

Keyboard, mouse, audio, other recording devices

Keypad, touch screen, d-pad, voice

Output Screen, printer, larger internal storage

Smaller SD card storage, printing through Bluetooth

Resources

Large range of processing and memory configurations

Limited to mobile processing and memory resources

Page 8: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Desktop vs. Mobile Application Context

Typically stationary

Dedicated concentration

Desktop

On the move

Distracted concentration

Mobile

Page 9: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Program Scale

Small progra

m

Small progra

m

Small progra

m

Large progra

m

Page 10: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Scale of a Problem

Based on the following factors: Difficulty of the solution Number of functions in the solution Amount and diversity of data in the

solution

Page 11: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Analyzing a Small-Scale Problem What is the input data? What is the output information? What are the formulas/processes you

have to use to solve this problem by hand?

Are there special conditions?

Page 12: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Rock-Paper-Scissors Example Input

Mode Names of the players Choice of paper, rock, or scissors

Output Winner of the game

Page 13: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Rock-Paper-Scissors Example Tasks

Determine the winner and display the result.

Compute the computer’s move. Obtain the user’s move. Obtain the name of the user.

Page 14: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Rock-Paper-Scissors Example Ordered tasks

1. Obtain the name of the user.2. Compute the computer’s move.3. Obtain the user’s move.4. Determine the winner and display the

result.

Page 15: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Algorithm to Obtain Name

Page 16: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Algorithm for the Computer’s Move

Page 17: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Options for Obtaining Inputfor User’s Move

Menu Less error prone More consistent Short menus are

user friendly Long menus are

difficult to follow

User enters a string High probability for

error

User enters an abbreviation Must convert to

string for output purposes

Page 18: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Algorithm for the User’s Move

Page 19: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Input Validation

Page 20: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Algorithm for Determining the Winner

Page 21: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Main Algorithm

Page 22: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Random Numbers

Page 23: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Demographics Program Example Input Data

Ethnicity information Number of people in the chosen

population Output data

Data and distribution table

Page 24: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Demographic Example Tasks

• Display a menu• Obtain the user’s selection• Execute the selection

Menu-related tasks

• Display a list of data• Enter data into a list• Compute the diversity

distribution

Operations performed after menu option is selected

Page 25: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Main Algorithm

Page 26: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Enter Data Algorithm

Page 27: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Display Data Algorithm

Page 28: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Display Demographics Algorithm

Page 29: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Display Demographics Algorithm

Page 30: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Switch Statement

Page 31: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Switch Statement vs. If-Else

Page 32: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Summary

In this unit, we covered the following topics: Desktop applications GUI applications Desktop vs. mobile applications Console applications Algorithms Visual Basic

Page 34: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

An SMS message is limited to ___________ characters.A. 60B. 140C. 256D. 512

Page 35: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

A(n) _______________ changes the code you type into code a computer can understand.A. analytic engineB. emulatorC. scannerD. compiler

Page 36: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Which period of time is known as the “Brick Era” because mobile phones were larger than corded phones?A. 1973–1988B. 1988–1998C. 1998–2008D. 2008–2013

Page 37: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

The binary equivalent of 13 is ___________.A. 10111B. 1010C. 1110D. 1101

Page 38: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

In the ___________ step, the control unit (CU) determines what type of instruction has been fetched, such as add or equality.A. Fetch instructionB. Decode instructionC. Execute instructionD. Store result

Page 39: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

The world’s largest mobile operator is in ___________.A. United KingdomB. ChinaC. SpainD. USA

Page 40: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Timothy Berners-Lee developed ____________ in 1989.A. HTMLB. the InternetC. C++D. the touch screen

Page 41: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Which of the following is not an example of a compiled programming language?A. PascalB. FORTRANC. CD. HTML

Page 42: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

What is the last step of the software engineering spiral process?A. Plan the Next IterationB. Determine ObjectivesC. Identify and Resolve RisksD. Develop and Test

Page 43: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

What is a disadvantage of a native mobile application?A. You cannot charge for the application.B. It cannot take advantage of device-specific features.C. It cannot be easily ported to other mobile platforms.D. It loads pages slowly because of network latency.

Page 44: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

What is the speed of a 4G mobile network?A. Less than 1 MbpsB. 1–3 MbpsC. 3–5 MbpsD. Unlimited

Page 45: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

What is an advantage of an SMS application?A. It is useful for sending timely alerts to a user.B. It is simple to create using HTML5 and CSS.C. It offers a best-in-class user interface.D. It can take advantage of advanced device-specific features.

Page 46: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Top-down code is ___________ than code that has been broken into functions.A. easier to read and debugB. harder to read and debugC. faster to write, but harder to debugD. more time consuming to write, but easier to debug

Page 47: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

According to Fling’s book Mobile Design and Development, _________ is what makes mobile such a powerful and exciting medium.A. styleB. dimensionC. contextD. strategy

Page 48: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

What is the following?cout << “Hello World\n”;A. A Visual Basic statementB. A Java functionC. A Pascal functionD. A C++ statement

Page 49: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Which of the following is not part of the programming the basics stage?A. Writing code that is associated with what happens when the application is first started by the end userB. Writing code that is associated with what happens when the application is exited by the end userC. Any prompts or instructions given by the application to the end userD. Any comments or feedback given by the application to the end user

Page 50: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

A full-screen immersive context is appropriate for ______________.A. providing information at a glanceB. gamesC. productivity applicationsD. locale-related applications

Page 51: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

The MCTS: Windows Mobile 6.5 certification is offered by __________.A. MicrosoftB. AppleC. OracleD. IBM

Page 52: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Testing with proper _______ and then thoroughly checking the ________ is by far the best way to check for actual code errors.A. output, inputB. input, outputC. raw data, formatted dataD. data, database

Page 53: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

Mobile ________ determines how much time, effort, and money it will cost to develop a solution.A. strategyB. contextC. designD. platform

Page 54: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

A glyph appears ___________ on a device with greater pixel density than on one with lower pixel density.A. more blurryB. largerC. sharperD. smaller

Page 55: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

A ___________ is used to maintain a consistent look and feel.A. contextB. design patternC. paletteD. layout

Page 56: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

The repeat-while statement is an example of a ______________.A. design patternB. decision statementC. sequence paletteD. loop statement

Page 57: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

The following is an example of a(n) ___________.IF rainfall > 2 inches THENA. looping statementB. sequential statementC. conditional statementD. design pattern

Page 58: Unit 6 Desktop Applications. Course Objectives  During this unit, we will cover the following course objectives:  Identify the characteristics of desktop

Prepare for the Final

A _____________ shape in a flowchart always has two arrows leaving it.A. diamondB. parallelogramC. rectangleD. circle