School

University of MarylandDepartment

Business and ManagementCourse Code

BMGT 302Professor

Peter HuangStudy Guide

FinalThis

**preview**shows pages 1-3. to view the full**24 pages of the document.**UMD

BMGT 302

Final EXAM

STUDY GUIDE

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Lecture BMGT302

Programming

• Algorithm- an ordered sequence of unambiguous and well-defined instruction

that performs some task and halts in finite time

Representing algorithms

• Pseudocode- list of instructions to perform some task (English-like), and uses

short phrases to describe steps needed

• Flowchart- pictorial representation of logical steps to perform a task. Uses

standardized symbols to show the steps to reach its goal

Sequence control with types of instructions:

Input= get

Process/calculation= “=”

Output= display

The sequence was: 1. Get price, 2. Get sales tax rate, 3. Sales tax = price of item sales

tax rate, 4. Final price = price of item plus sales tax, 5. Display final price, 6. Halt

Variables: price of item, sales tax rate, sales tax, final price

Selection/decision control

1. Get hours worked

2. Get pay rate

3. If hours worked <= 40 then

a. Gross pay = pay rate times hours worked

4. Else

a. Gross pay = pay rate times (40 plus 1.5 times (hours worked minus 40))

5. Display gross pay

6. Halt

Variables: hours worked, pay rate, gross pay

Loop/repetition control

1. Get number of quizzes

2. Sum = 0

3. Count = 0

4. While count < number of quizzes then

a. Get quiz grade

b. Sum = sum + quiz grade

c. Count = count + 1

5. Average = sum/count

find more resources at oneclass.com

find more resources at oneclass.com

###### You're Reading a Preview

Unlock to view full version

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

6. Display average

7. Halt

Variables: number of quizzes, sum, count, quiz grade, average

find more resources at oneclass.com

find more resources at oneclass.com

###### You're Reading a Preview

Unlock to view full version