{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

week 2 programming problem

# week 2 programming problem - Allen Cordell Week 2...

This preview shows pages 1–4. Sign up to view the full content.

Allen Cordell Week 2 checkpoint: Programming Problem IT/210 Frederick Zarnowski 5/25/2011

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
#1.Input a saleswoman’s sales for the month (in dollars) and her commission rate (as a percentage), and output her commission for that month. Analyze Get user input Get sales for the month = TotalSales Get commission rate = TotalCommission Display TotalCommission for the month Input Module Write “Enter total sales for the month” Input TotalSales Process Module Input the total sales for the month, TotalSales Compute commission for the month, TotalCommission Set TotalCommission = 12% * TotalSales Display the value of TotalCommission Output Module Display the Value of TotalCommission Write TotalCommission #2.The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item and its weight in pounds and ounces. It should then determine and display the unit price (the price per ounce) of the item. Analyze Declare ItemName as String Get price of item = ItemPrice Get weight of item in pounds = PoundWeight Get weight of item in ounces = PoundOunce Display the unit price of the item in ounces = UnitPrice
Input Module

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

week 2 programming problem - Allen Cordell Week 2...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online