#include <iostream>
using namespace std;
int main(){
float list_price;
cout<<"Please enter the list price of the car: ";
cin>>list_price;
float dealers_cost = list_price * 0.85;
float min_accepted_price = dealers_cost + 500;
cout<<"The least amount that the dealer would accept for the car: "<<min_accepted_price<<"\n\n";
system("pause");
return 0;
}
Comments
Leave a comment