#include<stdio.h>
#include<conio.h>
void main()
{
float Q,WS;
float FMarkU,SMarkU,AMarkU,OWSaleP;
float RetailPrice;
clrscr();
printf("\n\tEnter the quantity of the item:");
scanf("%f",&Q);
printf("\n\tEnter the wholesale cost for an item:");
scanf("%f",&WS);
FMarkU =0.20;
SMarkU =0.12;
if(WS>500)
{
AMarkU =WS*FMarkU;
OWSaleP =WS-AMarkU;
RetailPrice =OWSaleP/Q;
printf("\n\tTHe markup of rate the item is 20%");
}
else
{
AMarkU =WS*SMarkU;
OWSaleP =WS-AMarkU;
RetailPrice =OWSaleP/Q;
printf("\n\tThe markup rate of the item is 12%");
}
printf("\n\tThe Retail Price for the item is P %.2f",RetailPrice);
getch();
}
No comments:
Post a Comment