//Castulo Jason Quintero CSC5 Chapter 2, P. 83, #13
//
/**************************************************************
*
* COMPUTE FINAL SALE PRICE TO GROSS 40% PROFIT
* ____________________________________________________________
* This program computes the final sale price of an item to set
* gross a profit margin of 40 percent.
*
* Computation is based on the formula:
* X = Production cost / 2;
* Final Sale Price = X * 5;
* ____________________________________________________________
* INPUT
* oemPrice: Original Production Cost
* oemPriceBy2: Original Production / by 2
*
* OUTPUT
* profitMargin
* salePrice : MPG car can travel
*
**************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
float oemPrice; //INPUT - Original Production Cost
float oemPriceBy2; // INPUT - Original Production / by 2
float profitMargin;// OUTPUT - Net Profit Margin Percentage
float salePrice; //OUTPUT - Final Sale Price of Product
//
// Initialize Program Variables
oemPrice = 12.67;
//
// Compute Final Sale Price & Net Profit Margin
oemPriceBy2 = oemPrice / 2;
salePrice = oemPriceBy2 * 5;
profitMargin = oemPrice / salePrice;
//
// Output Result
cout << "The company would have to sell the circuit boards at $"
<< salePrice << "." << endl << "To see a net profit margin of "
<< profitMargin << " which is 40% above production cost." << endl;
return 0;
}