I Have to write a java program for a local store which try to make a profit by marks up the prices of items by a certain percentages. The program which reads the orginial price of the item sold, the percentage of amrked up price, sales tax rate. The program then outputs the orginial price of the item. The marked up percentage of the item, the store selling price of the item. The sale tax rate, the sale tax, and the final price of the item ( the final price of the item is the selling price plus sales tax. So far I have the following:
First of all, when posting code, use the java tags as described in the "Formatting Your Post" section (on the right of the input field). That makes reading it a lot less annoing.
Here are some of your errors:
1. You once wrote "original price" instead of "original_price" 2. What is "console"? You didn't declare or initialize it. 3. sales_amt, selling_price, Final_price (don't use capitals for a variable) are not declared either.
Once you fixed this, you just have to print out the results.
I was told by the instructor to use console.. I don't have my book with me to look it up to or to find out what it's purpose codes are... I will do that tonight when I get home..sorry -(