Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this, and most assignments, you are required to: -Work on the assignments alone. -Use only the tools and techniques covered so far (your submission

For this, and most assignments, you are required to:

-Work on the assignments alone.

-Use only the tools and techniques covered so far (your submission will be rejected if not)

-add a header to your program with your full name, date, and brief description.

-fully document your program: add comments to describe all major parts of your solution.

A penalty will be assessed against any and all items listed above.

Problem Specification:

A Real Estate agency (principal agency) is tasking you with developing an application that can be used to determine the total commission to be paid by the seller and based on the following:

- If this agency is the sole agency involved in the sale then the commission is 100% and rated at 5% of the purchase price.

-If a second agency is involved, then the principal agency gets 3% and the second gets 2% of the purchase price.

-If a third agency is involved then, the commission is 2.5% for each agency.

Your input will consist of:

-The name of each agency involved: note that you may want to ask for how many agencies are involved first and configure your prompts and inputs accordingly.

-The purchase price.

Your calculation:

-Total am9jt of the commission.

-The commission amount for each of the agencies involved

Your output/report:

-The names of all agencies involved.

-The purchase price.

-The total commission.

-The commission paid to each of the agencies.

Flow control:

-Prompt the user if he/she wants to start the program or quit early.

-start our loop and prompt for the different input then,

-calculate, then,

-display the report

-prompt the user is he/she want to repeat for another transaction

-You must validate the user answers to start and to continue the program.

Extra credits:

When the user decides to quit the program, display a final report made up of the following:

-Total amount of commissions for all transactions made by the principal agency. This total must be coded within the program and reported at the end.

-What is the maximum purchase price of the transaction the principal agency was the sole agency involved.

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions