Question: C++ programming -Xcode for mac Write a C++ program which performs the following: Ask user to enter from keyboard the sales info about 3 cars:
C++ programming -Xcode for mac
Write a C++ program which performs the following: Ask user to enter from keyboard the sales info about 3 cars: Example: CRV-3 150000.00 20.0 MRV-1 180000.00 20.0 CIVIC 82000.00 10.0 The fields in the above columns are: Vehicle Name: string Vehicle Price: float/double Profit Rate (%) = float/double Displays the results for each car with the following info: Vehicle Name: string Total Price: float/double Note: The total price of each car is calculated as follows: Total Price = (Vehicle Price) + (Vehicle Price * Profit/100) Homework: Redo the above exercise to read the car sales info (a) from a file "car.txt". Then output the results (b) to a file "showroom.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
