Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Jacob and Selena both work for a real estate company. They earn 3 . 1 0 % as a seller agent if they help a
Jacob and Selena both work for a real estate company. They earn as a seller agent if they help a client sell a house, or as a buyer agent if they help a client buy a house. A home was recently sold for $ for which Jacob was the seller agent and Selena was the buyer agent. Create a program to output the information given in blue below using the following required steps:
create variables of type double named sellerAgentPercentage, buyerAgentPercentage, homePrice, jacobsCommission, selenasCommission yes start the variable names with a lowercase letter and set each variable's value according to the information given above.
write long print statement to generate the following lines of output given below. Hint: use
to move to the cursor to the next line, see chapter for examples.
Price of the house: $DisplayvalueHerewithoutparenthesis
Jacob's Commission: $DisplayvalueHerewithoutparenthesis
Selena's Commission: $DisplayvalueHerewithoutparenthesis
Total Commission: $DisplayvalueHerewithoutparenthesis
For example, Output should look something like the following. Actual values are hidden since you need to calculate and display them.
Price of house: $xxxx
Jacob's commission: $yyyy
Selena's commission: $zzzzz
Total commission: $nnnnnn
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