hw02 - CS 159 Spring 2011 HW #02 5 Points Possible Due:...

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

View Full Document Right Arrow Icon
CS 159 – Spring 2011 HW #02 – 5 Points Possible Due: February 7, 2011 at 11:00pm Problem: Accept from the user integer input representing a desired number of each electronics product your store sells. Be sure your output matches the example output given below. The sales tax rate used is 7%. Example Execution #1: Enter quantity of televisions: 1 Enter quantity of Blu-ray players: 3 Enter quantity of remote controls: 10 Enter quantity of MP3 players: 2 Enter quantity of laptops: 0 QTY DESCRIPTION UNIT PRICE TOTAL PRICE --- ----------- ---------- ----------- 1 Televisions $ 599.99 $ 599.99 3 Blu-ray Players $ 199.99 $ 599.97 10 Remote Controls $ 29.99 $ 299.90 2 MP3 Players $ 44.99 $ 89.98 0 Laptop Computers $ 349.99 $ 0.00 ----------- Subtotal $ 1589.84 Tax $ 111.29 Total $ 1701.13 Example Execution #2: Enter quantity of televisions: 0 Enter quantity of Blu-ray players: 15 Enter quantity of remote controls: 100 Enter quantity of MP3 players: 30 Enter quantity of laptops: 5 QTY DESCRIPTION
Background image of page 1

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

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

Page1 / 2

hw02 - CS 159 Spring 2011 HW #02 5 Points Possible Due:...

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