Ensure the file named Furniture.java is open.
The file includes variable declarations and output statements. Read them carefully before you proceed to the next step.
Design the logic and write the Java code that will use assignment statements to:
Calculate the profit (profit) as the retail price minus the wholesale price
Calculate the sale price (salePrice) as 25 percent deducted from the retail price
Calculate the sale profit (saleProfit) as the sale price minus the wholesale price.
Execute the program by clicking Run. Your output should be as follows:

Item Name: TV Stand
Retail Price: $325
Wholesale Price: $200
Profit: $125
Sale Price: $243.75
Sale Profit: $43.75
91011121314151617181920212223242526272829303132678345
double profit;
double saleProfit;

// Write your assignment statements here.
Logic:
profit=retailPrice-wholesalePrice
salePrice=retailPrice-(retailPrice*25)/100;
saleProfit=salePrice-wholesalePrice;



can someone write this how the code would be written i think i have it correct but i am getting and error when i run the code