page_180_Rick_Hammer

page_180_Rick_Hammer -...

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

View Full Document Right Arrow Icon
a) a program that accepts data for an order number, customer name, length and width of the desk  ordered, type of wood, and number of drawers. Display all the entered data and the final price for the  desk.  Start Generate Input customerName deskLength desk Width deskWood deskDrawers Declare Variables Num orderNumber Num deskNumber Num deskLength Num deskWidth Num deskWood Num deskDrawers Num minimum =200 Num sizeLimit = 200 Num sizeLimitPremium =50 Num mahoganyPremium =150 Num oakPremium =125 Num perDrawer = 30 Num charge Char customerName
Background image of page 1

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

View Full DocumentRight Arrow Icon
Display orderNumber customerName deskLength desk Width deskWood deskDrawers charge Stop Store all information in a file
Background image of page 2
Pseudocode: Start main program Declare variables Input customerName, deskLength, desk Width, deskWood, deskDrawers Generate order number Set initial charge = minmum charge ($200) Calculate deskLength * desk Width of desk and compare with minimum size(750 square inches) If size exceeds 750 sq inch Set charge = charge + 50
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 02/18/2011 for the course CIS 111 taught by Professor Brown during the Winter '11 term at Sinclair CC.

Page1 / 5

page_180_Rick_Hammer -...

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