1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
timama [110]
3 years ago
10

Caitlyn's Crafty Creations computes a retail price for each product as the cost of materials plus $14 multiplied by the number o

f 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.
Computers and Technology
1 answer:
lesya692 [45]3 years ago
4 0

Answer:

The Java code is given below with appropriate comments and output

Explanation:

<u>CaitlynsCraftyCreations.java </u>

package org.students;

import java.util.Scanner;

public class CaitlynsCraftyCreations {

  public static void main(String[] args) {

     

      //Scanner object is used to read the values entered by the user.

      Scanner sc = new Scanner(System.in);

      //Getting Product Name From the User

      System.out.print("The name of a product :");

      String nameOfProduct=sc.nextLine();

     

      //Getting the cost of the material entered by the user.

      System.out.print("The cost of materials : $");

      double costOfMaterials=sc.nextDouble();

     

      //Getting the Hours of work entered by the user..

      System.out.print("Enter the hours of work :");

      double hoursOfWork =sc.nextDouble();

     

      /*

      * Calling the method

      * by passing the costOfMeterials and hoursOfWork as parameters.

      * Get the Returned value and stored into a varible of type double.

      */

      double retailPrice= findRetailPrice(costOfMaterials,hoursOfWork);

     

      //Displaying the Product name and Its retail price after discount.

      System.out.println("The Name of the Product is :"+nameOfProduct);

      System.out.println("The Retail Price after Discount is : $"+retailPrice);

         

     

  }

  /*

  * This method will find the retail price of the Product after discount.

  * @Param costOfMaterials,hoursOfWork

  * Return discounted retail price of double type.

  */

  private static double findRetailPrice(double costOfMaterials,double hoursOfWork)

  {

      return 0.75 * (costOfMaterials + (14 * hoursOfWork)) + 6 ;

  }

}

___________________________________________________________________________

Output:

The name of a product :Woven Purse

The cost of materials : $500

Enter the hours of work :25

The Name of the Product is :Woven Purse

The Retail Price after Discount is : $643.5

__________________________________________________________________________

You might be interested in
What will happen if Sam goes to the View menu, clicks Toolbars, and then clicks Picture?
elena-s [515]
I think the correct answer from the choices listed above is option C. If Sam goes to the View menu, clicks Toolbars, and then clicks Picture, then the picture toolbar will appear. Hope this answers the question. Have a nice day. Feel free to ask more questions.
4 0
3 years ago
Read 2 more answers
How many fixes are available for Adobe Photoshop CS4 (64 Bit)?
arsen [322]

Answer:

There are three (3) fixes in adobe cs4.

Explanation:

Adobe photoshop cs4 is a version of the creative cloud's professional graphic applications used to edit pictures, design interfaces, make graphical illustrations, draw and animate the drawings, etc.

It can be installed in several computer operating system platforms like linux, mac and windows. The adobe photoshop cs4 doesn't support the windows installation and might run into several issues. There are other issues in other supported platforms, but unlike for windows, there are three fixes for these problems.

4 0
3 years ago
Convert decimal number into binary numbers (265)10<br>​
Ksenya-84 [330]

Answer:

HELLOOOO

Alr lets start with steps by dividing by 2 again and againn..

265 / 2 = 132 ( rem = 1 )

132 / 2 = 66 ( rem = 0 )

66/2 = 33 ( rem = 0 )

33/2 = 16 ( rem = 1 )

16/2 = 8 ( rem = 0 )

8/2 = 4 ( rem = 0 )

4/2 = 2 ( rem = 0 )

2/2 = 1 ( rem = 0 )

1/2 = 0 ( rem = 1 )

now write all the remainders from bottom to up

100001001

is ur ans :)))

7 0
3 years ago
____ the most popular word processing applications software<br><br>​
Kamila [148]

Answer:

Microsoft word.......

5 0
2 years ago
What term is defined as software that allows users to use and adapt it for any purpose, often allowing the public to participate
Alex787 [66]

Answer:

The answer is open source

Explanation:

hope this helps

# look it up on google

6 0
3 years ago
Other questions:
  • Choose all that apply.
    6·2 answers
  • A) A cable that is mainly used in the cable television network
    11·1 answer
  • Select all reasons it is important to perform equipment maintenance
    8·1 answer
  • Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array tha
    9·1 answer
  • To recover from driving off the road steer back onto the road in then ?
    14·2 answers
  • What tab on the Ribbon would you select to create a Photo Album ?
    5·1 answer
  • What is an html skeleton? If you know what it is can you write it for me?
    12·1 answer
  • Describe the evolution of computers.​
    7·1 answer
  • Pls help now the question is very hard someone help me pls​
    6·1 answer
  • Data erasure software uses standards that are called.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!