Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a console-based application that computes the price of a desk and whose Main() method calls four other methods: A method to accept the number

Create a console-based application that computes the price of a desk and whose Main() method calls four other methods:

A method to accept the number of drawers in the desk 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 - 'm' for mahogany, 'o' for oak, or 'p' for pine.

A method that accepts the number of drawers and wood type, and calculates the cost of the desk based on the following:

Pine desks are $100.

Oak desks are $140.

All other woods are $180.

A $30 surcharge is added for each drawer.

This method returns the cost to the Main() method.

A method to display all the details and the final price.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago