subject

In this lab, you complete a partially written Java program that is provided for you. The program, which was written for a furniture company, prints the name of the furniture item, its retail price, its wholesale price, the profit made on the piece of furniture, a sale price, and the profit made when the sale price is used.
1. Open the file named Furniture. java using Notepad or the text editor of your choice.
2. The file includes variable declarations and output statements. Read them carefully before you proceed to the next step.
3. Design the logic that will use assignment statements to first calculate the profit, then calculate the sale price, and finally calculate the profit when the sale price is used. Profit is defined as the retail price minus the wholesale price. The sale price is 25 percent deducted from the retail price. The sale profit is defined as the sale price minus the wholesale price.
Perform the appropriate calculations as part of your assignment statements.
4. Save the source code file in a directory of your choice, and then make that directory your working directory.
5. Compile the program.
6. Execute the program. Your output should be as follows:

• Item Name: TV Stand
• Retail Price: $325.0
• Wholesale Price: $200.0
• Prot: $125.0
• Sale Price: $243.75
• Sale Prot: $43.75

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Is a philosophy and a software and system development methodology that focuses on the development, use, and reuse of small, self-contained blocks of codes to meet the software needs of an organization.joint application designextreme programmingrapid application developmentservice-oriented architecture
Answers: 1
question
Computers and Technology, 25.06.2019 11:10
Plato: which view of report creation allows you to customize the report before the database program creates it?
Answers: 3
You know the right answer?
In this lab, you complete a partially written Java program that is provided for you. The program, wh...
Questions
question
Mathematics, 16.11.2020 20:00
question
History, 16.11.2020 20:00
question
Mathematics, 16.11.2020 20:00
question
Mathematics, 16.11.2020 20:00
question
English, 16.11.2020 20:00
Questions on the website: 13722361