Write a method that receives the radius of a circle, then calculates and returns the area of that circle. Write a main method that will ask the user to input the radius, calls the method above, then displays the returned value of the area. Write a method that receives the price of an item, and the discount on that item, then it calculates and prints the price after discount and after adding tax (a constant 5%). In the main method, ask the user to input the price of an item, then call the above method to calculate and print the final price.

icon
Related questions
Question

Alert dont submit AI generated answer.

in Java.

Write a method that receives the radius of a circle,
then calculates and returns the area of that circle.
Write a main method that will ask the user to input
the radius, calls the method above, then displays the
returned value of the area.
Write a method that receives the price of an item, and
the discount on that item, then it calculates and prints
the price after discount and after adding tax (a
constant 5%).
In the main method, ask the user to input the price of
an item, then call the above method to calculate and
print the final price.
Transcribed Image Text:Write a method that receives the radius of a circle, then calculates and returns the area of that circle. Write a main method that will ask the user to input the radius, calls the method above, then displays the returned value of the area. Write a method that receives the price of an item, and the discount on that item, then it calculates and prints the price after discount and after adding tax (a constant 5%). In the main method, ask the user to input the price of an item, then call the above method to calculate and print the final price.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer