Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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. 

Inheritance in Java


Create 5 classes(coffeeshop) and use graphical user interface to get the data from the user


Can there be an exception given for when a negative number is entered for the number of students as well as the age?


Seoul Garden Sdn Bhd serves a wide range of seafood selections such as tasty crabs, fresh prawns, chicken fillets & many more for steamboat and grill. This buffet restaurant serves up 150+ choices of fresh seafood, fruits, and cold & hot beverages.


The price of the steamboat per person is shown in Table 1:


Age (years) Price (RM)

________________________

6 - 12 RM 11

> 13 RM 25

________________________

*I can't draw a table so I do like this :'(

Seoul Garden Sdn Bhd also gives an appreciation for the member cardholder with 6% off from the total price. The above price excludes government tax of RM 5.60.


Write an application that accepts the customer’s age and member status (member or non-member) by using a JOptionPane procedure and prints out the total price.



A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is 0.38, and the profit of each carton of milk is 0.27.


Write a program that does the following:

a. Prompts the user to enter the total amount of milk produced in the morning

b. Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer.)

c. Outputs the cost of producing milk

d. Outputs the profit for producing milk


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS