Professional Documents
Culture Documents
Computer Science 1 131 Programming Exercise 2-20
Computer Science 1 131 Programming Exercise 2-20
price
in excess of the cost of the car.
Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling
price is the cost of the car and $2,000.
Instructions
4.The minimum and maximum amount to be added to the purchasing cost to determine the minimum
and maximum selling price
#include <iostream>
int main() {
double excessH;
double excessL;
double price;
double comm;
double percent;
double NpriceH;
double NpriceL;
double commH;
double commL;
NpriceH = price+excessH;
NpriceL = price+excessL;
commH = (percent/100)*excessH+comm;
commL = (percent/100)*excessL+comm;
return 0;