Question: Programming language is C++ PA 6-3 (25 points) Modify and extend the real estate program in Module 6 Sample Programs.docx to use a switch statement
PA 6-3 (25 points) Modify and extend the real estate program in Module 6 Sample Programs.docx to use a switch statement instead of if-else. The switch statement should include the shortcut technique so that lower case r, m, and c, do not give "Improper Property Code" message. Then determine and calculate the commission percentage on a real estate sale depending on the property. Use output manipulators to provide the correct number of decimal places and setw to align decimal points in the outputs. Use these value to calculate the commission for various property types. residential_rate-0.060; multidwelling rate 0.050; commercial rate 0.045; DACodeBlocks-EPlCodeBlocks-EPMMarsh2050Abin Enter the property's selling price: 329995 Enter the property code according to the following Single Family Residential, enter R Multiple Unit Residential, enter M Commercial, enter c Please make your selection: c For this Commercial property The value of the property is 329995.00 and The commission is 14849.77
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
