Question: Create an application using java that prompts the user for the length, width and height for the rectangular room, pass these three parameters to a

Create an application using java that prompts the user for the length, width and height for the rectangular room, pass these three parameters to a method that does the following:

  • Calculate the wall area for the room and display it inside a label when a button is clicked.
  • Passes the calculated wall area to another method that calculates and returns the number to the of tins of paint needed.
  • Display the number of tins needed in a label. This must happen at the click of a button.
  • Compute the price of the paint given that a tin of paint costs R30 assuming that any fraction of paint is bought at the full price of a tin. The total costs of the paint should be displayed in label when a button is clicked.
  • The system (application) should calculate and display the amount of the value added TAX (VAT) charged at rate of 15% and the total costs of paint after value added Tax should be displayed.
  • Lastly the application should capture the amount tendered to the cashier and calculate and display the change.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!