write an application for a furniture company; the program determines the price of a table. ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. the output is the name of the wood chosen as well as the price of the table. pine tables cost r 100, oak tables cost r 225, and mahogany tables cost r 310. if the user enters an invalid wood code, set the price to 0 and allow the user to select an option up to 3 times . save the file as furniture.java. marks allocation 1. presentation of a menu - 10 select an option 1. for pine 2. for oak 3. for mahogany 2. use of a loop - 10 3. use of an if statement/ switch - 10 4. correct output "-10"
Write an application for Furniture Company Sdn Bhd, the program determines the total price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany and prompt the user to enter the number of a table. The output is the name of the wood chosen as well as the price of the table. Pine table cost RM100, oak tables cost RM225, and mahogany tables cost RM310. If the user enters an invalid wood code, set the price to 0.
Furniture Company Sdn Bhd also gives an appreciation for the member card holder with 6% off from the total price. The above price is exclude government tax RM 5.60.
Save the file as Furniture.java.
Write an application for Furniture Company Sdn Bhd, the program determines the total price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany and prompt the user to enter the number of a table. The output is the name of the wood chosen as well as the price of the table. Pine tables cost RM100, oak tables cost RM225, and mahogany tables cost RM310. If the user enters an invalid wood code, set the price to 0.
Write a class to convert Fahrenheit temperature to Celsius. Declare a variable to hold the normal human body temperature of 98.6 degrees Fahrenheit. A Celsius temperature can be calculated by subtracting 32 from the Fahrenheit value and multiplying the result by 5.0/9.0. Display the converted Celsius value. Save the class as FahrenheitToCelsius.java.
Write an application for a lawn-mowing service. The lawn-mowing season lasts 20 weeks. The weekly fee for mowing a lot under 4,000 square feet is R25. The fee for a lot that is 4,000 square feet or more, but under 6,000 square feet, is R35 per week. The fee for a lot that is 6,000 square feet or over is R50 per week. Prompt the user for the length and width of a lawn USING JOPTIONPANE, and then display the weekly mowing fee USING JOPTIONPANE , as well as the 20-week seasonal fee. Save the file as Lawn.java
1. The use of class and object
2. The use of JOption for input
3. The use of JOption for output
4. correct out
Write an application for a furniture company; the program determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost R 100, oak tables cost R 225, and mahogany tables cost R 310. If the user enters an invalid wood code, set the price to 0 and allow the user to select an option up to 3 times . Save the file as Furniture.java.
Marks allocation
1. Presentation of a menu
Select an option
1. for pine
2. for oak
3. for mahogany
2. use of a loop
3. Use of an if statement/ switch
4. correct output
Create a program that will enter at least five numbers, compute the average, and print the said numbers in reverse order.
Sample output:
Enter the number of elements: 5
enter the value of item number 1: 80
enter the value of item number 2: 82
enter the value of item number 3: 84
enter the value of item number 4: 82
enter the value of item number 5: 85
The average of 5 element is 82.60
Reverse order of 5 elements: 85, 82, 84, 82, 80
:Calculate the sum of all elements in given matrix.
44 85 20 33 -18
56 35 67 -2 -54 45
44 42 56 -76 90
-56 78 -14 79 11 33 in java
Create an application named TestSandwich_[your name] that instantiates one Sandwich object and demonstrates the use of the set and get methods.
Can there be an exception given for when a negative number is entered for the number of students as well as the age?