Question

Write pseudocode for an algorithm that is given the length and width, in feet, of a...

Write pseudocode for an algorithm that is given the length and width, in feet, of a rectangular carpet and determines its total cost given that the material cost is $23/square yard.

0 1
Add a comment Improve this question Transcribed image text
Answer #1

Get L and W
set ()x23
PRINT total cost

get the length and width
// note: instructions say input is in feet. Must convert to yards now or divide sq ft by 9 (1 sq yd = 9 sq ft.)
divide each by 3 to convert to yards.
Multiply length and width to sq. yards.
Multiply by $23/sq yards

Add a comment
Know the answer?
Add Answer to:
Write pseudocode for an algorithm that is given the length and width, in feet, of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT