Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, i need help with this C++ problem, it needs to be compiled in GNU C++ compiler. In this assignment you will modify the program

Hello, i need help with this C++ problem, it needs to be compiled in GNU C++ compiler.

image text in transcribedimage text in transcribed

In this assignment you will modify the program that you wrote for the previous assignment (Lab 1) and read in the values for seller and price from a file using the fstream library and format the output using the iomanip library Variables seller (seller's name: string), price (price of the house: double), cost (cost to sell the house, 696. double), commission (commission on the sale, 1 .5%: double) input (input file: ifstream) Input Realtor2.txt Name of seller, price of house (from file Realtor2.txt) Format of Realtor2.txt: example Garcia 100000 Output (note spacing) This program calculates the cost to sell a home and the commission paid to an individual sales agent. Seller's Cost Agent's Commission Home Owner Price of Home Garcia Step 1: Output descriptive messages cout > variable_1 >> variable_2 >> >> variable_n; Step 4: Calculate cost/commission variable = expression

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

Students also viewed these Databases questions

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago