Question: 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.

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!