lab2-2 - saleProfit = salePrice - wholesalePrice;

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

View Full Document Right Arrow Icon
// Lab 2-2 // This calculates profits and sales prices for a furniture company. public class Furniture { public static void main(String args[]) { String itemName = "Sofa"; double retailPrice = 450.00; double wholesalePrice = 300.00; double salePrice; double profit; double saleProfit; // Write your assignment statements here. salePrice = retailPrice - .1 * retailPrice; profit = retailPrice - wholesalePrice;
Background image of page 1

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

View Full DocumentRight 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: saleProfit = salePrice - wholesalePrice; System.out.println("Item Name: " + itemName); System.out.println("Retail Price: $" + retailPrice); System.out.println("Wholesale Price: $" + wholesalePrice); System.out.println("Profit: $" + profit); System.out.println("Sale Price: $" + salePrice); System.out.println("Sale Profit: $" + saleProfit); System.exit(0); System.exit(0); } }...
View Full Document

This note was uploaded on 04/30/2008 for the course MNGT 3040 taught by Professor Landrum during the Fall '08 term at Auburn University.

Page1 / 2

lab2-2 - saleProfit = salePrice - wholesalePrice;

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