Assignment_4 - finalprice = finalprice(numberofdrawes 30...

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

View Full Document Right Arrow Icon
Unit 4 Assignment 1. a. false b. false c. false d. illegal e. illegal f. illegal g. illegal h. true i. true j. true k. false l. true m. true n. false 7. A ) DeskOrder() start ordernumber integer customername string length float width float typeofwood string numberordrawers integer finalprice float ordernumber = [user_input] customername = [user_input} numberofdrawers = [user_input] finalprice = 200 if length * width > 750 then finalprice = finalprice + 50 endif if typeofwood = “mahogany” then finalprice = finalprice + 150 if typeofwood = “oak” then finalprice = finalprice + 125
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: finalprice = finalprice + (numberofdrawes * 30) return DeskOrder() print ordernumber print customername print length print width print typeofwood print numberofdrawers print finalprice b.) while DeskOrder() if typeofwood = “oak” and leng > 36 and numberofdrawers >= 1 then print ordernumber print customername print length print width print typeofwood print numberofdrawers print finalprice endif endwhile...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Assignment_4 - finalprice = finalprice(numberofdrawes 30...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online