//Xinnuo Wang                     CS1A                    chapter6 Page.369 #1
/*******************************************************************************
 * 
 * Display Retail Price
 * _____________________________________________________________________________
 * The program accepts an item's wholesale and markup percentage and diplays 
 * it's retail price.
 * 
 * _____________________________________________________________________________
 * Input
 *    Wholesale Cost    : The accepted wholesale cost of the item
 *    Markup Percentage : The accepted markup percentage of the item
 * 
 * Output
 *    Retail Price      : The retail price of the item
 * 
 * ****************************************************************************/
#include <iostream>
using namespace std;
double calculateRetail(double,double);//Prototype
int main() 
{
	double wholesaleCost, markupPercentage;
	cout << "Enter the item's whole sale and markup percentage in percent" << endl;
	cin >> wholesaleCost >> markupPercentage;
	cout << calculateRetail(wholesaleCost,markupPercentage);//call function
	return 0;
}
double calculateRetail(double wholesaleCost,double markupPercentage)
{
	double retailPrice;
	retailPrice = wholesaleCost * (1 + markupPercentage/100);
	return (retailPrice);
}
