Top Banner
SD1230 Unit 6 Desktop Applications
32

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

Dec 13, 2015

Download

Documents

Jessie Gordon
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

SD1230

Unit 6Desktop Applications

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Desktop Applications

• Applications you run on a laptop or desktop computer

• Examples:– Microsoft Office– Graphics programs– Integrated development environments (IDEs)– Games

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Desktop vs. Mobile ApplicationsDesktop Mobile

Window size Large and adjustable Limited by screen sizeUser 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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Desktop vs. Mobile Application Context

Typically stationary

Dedicated concentration

Desktop

On the move

Distracted concentration

Mobile

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

Program ScaleSmall

program

Small program

Small program

Large program

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Rock-Paper-Scissors Example

• Input– Mode– Names of the players– Choice of paper, rock, or scissors

• Output– Winner of the game

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Rock-Paper-Scissors Example

• Ordered tasks1. 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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Algorithm to Obtain Name

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

Algorithm for the Computer’s Move

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Algorithm for the User’s Move

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

Input Validation

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

Algorithm for Determining the Winner

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

Main Algorithm

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

Random Numbers

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

Demographics Program Example

• Input Data– Ethnicity information– Number of people in the chosen population

• Output data– Data and distribution table

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

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: SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.

Main Algorithm

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

Enter Data Algorithm

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

Display Data Algorithm

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

Display Demographics Algorithm

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

Display Demographics Algorithm

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

Switch Statement

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

Switch Statement vs. If-Else

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

Summary

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