Question
Write a program that can be used to calculate the commission earned in a real estate transaction. The chart below describes the formulas used to
Write a program that can be used to calculate the commission earned in a real estate transaction. The chart below describes the formulas used to calculate the commission. Your program will ask the user for the sales price as an double, calculate the commission, and display the sales price and commission. Remember to use constants rather than magic numbers. Sales Price Commission Less than $100,000 5% of the sales price $100,000 to $300,000 $5,000 + 10% of the amount of the sales price over $100,000 More than $300,000 $25,000 + 15% of the amount of the sales price over $300,000 2. Write a program that acts as a simple calculator. You will ask the user to enter two integers. Then you will ask for an operator from the list *,/,%,+, and -. If the user does not enter a valid operator, you will report the error and not perform any action. If the user asked to do division and the second number is zero, you will report the error and not perform any action. Otherwise, you will display what the equation is and the result I am using C ++ programming
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started