week 2 programming problem

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

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

View Full Document Right Arrow Icon
Allen Cordell Week 2 checkpoint: Programming Problem IT/210 Frederick Zarnowski 5/25/2011
Background image of page 1

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

View Full DocumentRight Arrow Icon
#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
Background image of page 2
Input Module Write “Enter name of item” Input ItemName
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/16/2011 for the course IT 205 taught by Professor Kurts during the Spring '08 term at University of Phoenix.

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 Right Arrow Icon
Ask a homework question - tutors are online