A custom tailor offers a variety of custom suit options to customers.  The company has tasked you with creating a program that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the number of square yards used to make the suit and will determine the total cost to charge the customer. Use the following steps to create the program: The program should display a menu that asks the technician to select the type of material that was used.  Make sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including indentation).   The program should determine the cost per square yard of the material.  The cost per square yard is determined based on the type of material that is used. Table 1: Type of Material and Cost per Square Yard   The program should then ask the tailor to enter the number of square yards of material that they used to make the custom suit.   Calculate the material cost, which can be found by multiplying the cost per square yard times the number of square yards. Calculate the labor cost.  The labor cost is 35% of the material cost.   Calculate the subtotal cost of the service.  The subtotal is the sum of the material cost and labor cost.   Calculate and apply a 5% discount to the subtotal if 4 or more square yards of material were used. If under 4 square yards were used, the discount is 0.   Calculate the total cost of the service by subtracting the discount from the subtotal.   Display the text "Custom Suit Calculator" at the top of the output.  (See Sample Input and Output)   The program should display the material cost, labor cost, subtotal, discount, and total cost (formatted to two decimal places).   Format the output of the program exactly as shown in the sample output (including indentation, spacing, and number of decimal places). Sample Input and Output (formatting, spacing, and indentation should be as shown below)   Satin Linen Leather Silk Please select a material type from the menu above: 3 Enter the number of square yards of material it took to make the custom suit: 5.3   Custom Suit Calculator   Material Cost: $97.79 Labor Cost: $34.22 Subtotal: $132.01 Discount: $6.60 Total Cost: $125.41

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

A custom tailor offers a variety of custom suit options to customers.  The company has tasked you with creating a program that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the number of square yards used to make the suit and will determine the total cost to charge the customer.

Use the following steps to create the program:

  1. The program should display a menu that asks the technician to select the type of material that was used.  Make sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including indentation).

 

  1. The program should determine the cost per square yard of the material.  The cost per square yard is determined based on the type of material that is used.

Table 1: Type of Material and Cost per Square Yard

 

  1. The program should then ask the tailor to enter the number of square yards of material that they used to make the custom suit.

 

  1. Calculate the material cost, which can be found by multiplying the cost per square yard times the number of square yards.
  2. Calculate the labor cost.  The labor cost is 35% of the material cost.

 

  1. Calculate the subtotal cost of the service.  The subtotal is the sum of the material cost and labor cost.

 

  1. Calculate and apply a 5% discount to the subtotal if 4 or more square yards of material were used. If under 4 square yards were used, the discount is 0.

 

  1. Calculate the total cost of the service by subtracting the discount from the subtotal.

 

  1. Display the text "Custom Suit Calculator" at the top of the output.  (See Sample Input and Output)

 

  1. The program should display the material cost, labor cost, subtotal, discount, and total cost (formatted to two decimal places).

 

  1. Format the output of the program exactly as shown in the sample output (including indentation, spacing, and number of decimal places).

Sample Input and Output (formatting, spacing, and indentation should be as shown below)

 

  1. Satin
  2. Linen
  3. Leather
  4. Silk

Please select a material type from the menu above: 3

Enter the number of square yards of material it took to make the custom suit: 5.3

 

Custom Suit Calculator

 

Material Cost: $97.79

Labor Cost: $34.22

Subtotal: $132.01

Discount: $6.60

Total Cost: $125.41

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY