Вы находитесь на странице: 1из 5

Running head: CHAPTER 4 HOMEWORK

Chapter 4 Homework Regina Varnado MSN Keller Graduate School of Management Professor Missakian MIS505: Essentials of Info Sys/Programming

Running head: CHAPTER 4 HOMEWORK

INPUT Name candyName pricePerPound poundsSold poundsPerMonth=2000

Description Name of the candy item Price of the candy item per pound The number of pounds of candy item sold The number of pounds of candy items sold per month more than 2000 pounds

Datatype/Length string string string string

WORK AREA Name

Description

Datatype/Length

OUTPUT Name Prompt_Enter_candy_Name

Description Variable to enter the name of the candy item Variable to enter the Prompt_Enter_price_per_pound price of the candy item per pound Variable to enter the Prompt_Enter_pounds_sold number of pounds sold candyName,pricePerPound,poundsSold the items data of the best selling candy item that sold more than 2000 pounds per month If the pounds of candy if poundsSold>poundsPerMonth items sold is more than 2000 pounds a month display End of job endif

Datatype/Length string string

string string

string

Running head: CHAPTER 4 HOMEWORK

Chocolate Delights Candy Company Best Selling Items

Display the items data Accept candy name, Calculate the average price per pound, and pounds of candy sold number of pounds sold (items that sell more of best selling item

per month
in the average month

than 2000 pounds per


month)

CHAPTER 4 HOMEWORK

Chapter 4 Homework Start Declare variables string candyName num pricePerPound num poundsSold num poundsPerMonth=2000 input candyName input pricePerPound input poundsSold if poundsSold>poundsPerMonth output candyName,pricePerPound,poundsSold endif stop

CHAPTER 4 HOMEWORK

start

Declarations string candyName num pricePerPound num poundsSold num poundsPerMonth=2000

input candyName

Input pricePerPoud

Input poundSold

No
poundsSold>poundsPerMonth

Yes

output candyName, pricePerPoundpoundsSold

stop

Вам также может понравиться