C# Using the Visual Studio Developer Command Prompt, create the application named Tables, as described below. Don't forget to add comments, including your name, name of program, description, and date at the beginning. Instructions: Create an application named Tables that computes the price of a table and chairs and whose Main() method calls the following methods: A method to accept the number of chairs to go with the table as input from the keyboard. This method returns the number of drawers to the Main() method. A method to accept as input and return the type of wood: p for pine, m for maple, and o or oak (use a loop to ensure only one of these letters is entered).  A method that accepts the number of chairs and wood type, and calculates the total cost of the desk based on the prices below. This method returns the total cost to the Main() method. Pine tables are $250. Maple tables are $300. All other wood types are $350. There will be an additional cost of $50 per chair. A minimum of 2 chair must be ordered (use a loop to ensure a value of 2 or more is entered.) A final method to display all the details and the final price. The image below shows a sample run of the program.

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

C#

Using the Visual Studio Developer Command Prompt, create the application named Tables, as described below. Don't forget to add comments, including your name, name of program, description, and date at the beginning.

Instructions:

Create an application named Tables that computes the price of a table and chairs and whose Main() method calls the following methods:

  1. A method to accept the number of chairs to go with the table as input from the keyboard. This method returns the number of drawers to the Main() method.
  2. A method to accept as input and return the type of wood: p for pine, m for maple, and o or oak (use a loop to ensure only one of these letters is entered). 
  3. A method that accepts the number of chairs and wood type, and calculates the total cost of the desk based on the prices below. This method returns the total cost to the Main() method.
    • Pine tables are $250.
    • Maple tables are $300.
    • All other wood types are $350.
    • There will be an additional cost of $50 per chair. A minimum of 2 chair must be ordered (use a loop to ensure a value of 2 or more is entered.)
  4. A final method to display all the details and the final price.

The image below shows a sample run of the program.

C:\C#>Tables.exe
Enter number of chairs >> 1
You must order at least two chairs.
Enter number of chairs >> 2
Enter type of wood - p, m or o >> r
You have entered an invalid wood type.
Enter type of wood - p, m or o >> t
You have entered an invalid wood type.
Enter type of wood - p, m or o >> m
You have ordered a maple table with 2 chairs
Total price is $400.00
Transcribed Image Text:C:\C#>Tables.exe Enter number of chairs >> 1 You must order at least two chairs. Enter number of chairs >> 2 Enter type of wood - p, m or o >> r You have entered an invalid wood type. Enter type of wood - p, m or o >> t You have entered an invalid wood type. Enter type of wood - p, m or o >> m You have ordered a maple table with 2 chairs Total price is $400.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
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