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
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
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...
Related questions
Question

Transcribed Image Text: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
acing, and

Transcribed Image Text:Program Description
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).
I
2. 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
Type of Material
Cost per Square Yard
Satin
$8.95
Linen
$9.65
Leather
Silk
$18.45
$28.99
3. The program should then ask the tailor to enter the number of square yards of material that they used to make the
custom suit.
4. Calculate the material cost, which can be found by multiplying the cost per square yard times the number of
square yards.
5. Calculate the labor cost. The labor cost is 35% of the material cost.
6. Calculate the subtotal cost of the service. The subtotal is the sum of the material cost and labor cost.
7. 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.
8. Calculate the total cost of the service by subtracting the discount from the subtotal.
9. Display the text "Custom Suit Calculator" at the top of the output. (See Sample Input and Output)
10. The program should display the material cost, labor cost, subtotal, discount, and total cost (formatted to two
decimal places).
11. Format the output of the program exactly as shown in the sample output (including indentation, spacing, and
number of decimal places).
Need Help?
Sample Innut and Qutput (formatting, spacing, and indentation should be as shown below)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY