Pass the numeric data to a method that computes the retail


For Java program required to build prom for below.

Caitlyn's Crafty Creations computes a retail price for each product as the cost of materials plus $14 multiplied by the number of hours of work required to create the product, plus $6 shipping and handling. Caitlyn's Crafty Creations is having a semi-annual sale now, and everything is 25% off before shipping and handling:

Retail price = 0.75 * (cost of materials + (14 * hours of work)) + 6

Create a class that contains a main () method that prompts the user for the name of a product (for example, "woven purse"), the cost of materials before discount and the number of hours of work required. Pass the numeric data to a method that computes the retail price of the product and returns the computed value to the main () method where the product name and retail price are displayed. Save the program as CraftPricing.java.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Pass the numeric data to a method that computes the retail
Reference No:- TGS02287520

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)