# data[].attributes.body
My solution works

# data[].attributes.attachment_link.readable_text
#include<iostream>
#include<iomanip>
using namespace std;
float CalculateRetail(float, float);

int main()
{
	float cost, markup_percent, retail_price;
	
	
	cout<<"Enter the item's wholesale cost : RM ";
	cin>>cost;
	
	cout<<"Enter the item's markup percentage (%): ";
	cin>>markup_percent;
	
	retail_price = CalculateRetail(cost, markup_percent);
	
	cout<<"\nIf an item's wholesale cost is RM "<<fixed<<setprecision(2)<<cost
		<<" and it's markup percentage is "<<fixed<<setprecision(0)<<markup_percent
		<<" %,"<<endl<<"then the item's retail price is RM"<<fixed<<setprecision(2)<<retail_price;
	
	return 0;
}

float CalculateRetail(float cost, float markup_percent)
{
	float retail;
	
	retail = (cost * (markup_percent/100)) + cost;
	
	return retail;
}

# data[].attributes.body
No error

# data[].attributes.attachment_link.readable_text
#include<iostream>
#include<iomanip>
using namespace std;

float CalculateRetail(float , float );

int main()
{
	float cost,total,markup;
	
	cout<<"Enter an item's Wholesale cost and markup percentage : ";
	cin>>cost>>markup; 
	
	total=CalculateRetail(cost,markup);
	
	cout<<"Item's Wholesale cost\t: RM "<<fixed<<setprecision(2)<<cost<<endl;
	cout<<"Markup percentage\t: "<<fixed<<setprecision(0)<<markup<<" %"<<endl;
	cout<<"Item's retail price\t: RM "<<fixed<<setprecision(2)<<total<<endl;
	
	return 0;
}

float CalculateRetail(float x, float y)
{
	float retail;
	retail=x+(x*(y/100));
	
	return retail;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

float CalculateRetail(float , float);

int main()
{
	float markup, cost, price;
	
	cout<<"Please enter the markup percentage and the wholesale cost : ";
	cin>>markup>>cost;
	
	price=CalculateRetail(markup, cost);
	
	cout<<"\nThe retail price for the item is "<<price<<"";
	return 0;
	
}

float CalculateRetail(float markup, float cost)
{
	float Retail_Price;
	
	Retail_Price=((markup/100)*cost)+cost;
	
	return Retail_Price;
	
}

# data[].attributes.body
#include <iostream>
using namespace std;
float calculateRetail(float,float);
int main ()
{
float percent, item,retail;

cout<<"Enter an item's wholesale cost : ";
cin>>item;

cout<<"Enter an item's markup percentage : ";
cin>>percent;

retail= calculateRetail(item,percent);

cout<<"The item's retail price is "<<retail;
}
float calculateRetail(float item,float percent)
{
float retail;
retail= item*(percent/100)+item;
return retail;
}

# data[].attributes.body
Write a program that asks user to enter an item's wholesale cost and its markup percentage........etc...etc
[Full question was given during lecture, so if you don't hv it please get from your friends....].

Please double click anywhere here and post your solutions. if your solution works, please say it works...if there are errors, please say that there are errors. I will comment on it.