Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.txtStep 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