Question: Complete in C++ Programming Language. 2 Multiple files and functions Write two programs to determine the cost of building a table with a square top.

Complete in C++ Programming Language.
2 Multiple files and functions Write two programs to determine the cost of building a table with a square top. Version One: Everything in the same file. Version Two: Spread the program across multiple files. The main() function should call the following functions: 1. A function which accepts from standard in the number of chairs to go with the table. 2. A function which accepts from standard in the surface area (in m) of the table. 3. A function which accepts from standard in the type of wood used to build the table and chairs; 'm' for mahogony, 'o' for oak or 'p' for pine. Ideally any other entry should be rejected. To deal with this input look at using an if statement, or switch. 1 4. A function that takes the number of chairs (N), the surface area of the table (S) and the type of wood (1) to calculate the price. The price for a table is (S + {N) where r is $50, $100 and $150 respectively for mahogony, oak and pine. 5. A function to display the details of the purchase
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
