//Taylor Johnson CS1A Chapter 2, P.83, #13
/******************************************************************************
* Compute Circuit Board selling price using profit margain and cost
*
* ____________________________________________________________________________
* This program computes the price a company sells their Circuit Boards for
* including the cost and prefered profit.
*
* This program will compute by using the formula:
* Profit = cost * profitPerc
* sellPrice = cost + profit
* ____________________________________________________________________________
* INPUT
* cost : price company paid per circuit board
* profitPerc : the percent profit the company makes per sale
*
* OUTPUT
* sellPrice : Price company sells circuit board to comsumer
* ***************************************************************************/
#include <iostream>
using namespace std;
int main()
{
//create variables and assign values for cost and profit percentage of the cost
float sellPrice, profit, cost = 12.67, profitPerc = 0.40;
// your code goes here
//Multiply the cost and profPerc to get profit per unit
profit = cost * profitPerc;
// add the profit per unit to cost resulting in the sellprice
sellPrice = cost + profit;
cout << "the cost of one circuit board is $" <<sellPrice<< "!" << endl;
return 0;
}