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. Caitlyns 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.

Discussions:

  • Describe the similarities and differences between the two types of programming methods. What are the new concepts introduced with OOP?
  • What are the advantages and disadvantages of each model?
  • In what circumstances would one method of programming be preferred over the other? Why?
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.