public static void Main()
double lowAttrPrice = 500;
double highAttrPrice = 700;
bool hasRangeAttrPrice = (lowAttrPrice == highAttrPrice) ? false:true;
double lowAttrListPrice = 700;
double highAttrListPrice = 700;
bool hasRangeAttrListPrice = (lowAttrListPrice == highAttrListPrice) ? false:true;
bool FSM_OnSale_ByAttribute = true;
double minpcntsaving = 0;
double maxpcentsaving = 0;
maxpcentsaving = ((lowAttrListPrice-highAttrPrice)/highAttrPrice)*100;
minpcntsaving = ((lowAttrListPrice-lowAttrPrice)/lowAttrPrice)*100;
if(!FSM_OnSale_ByAttribute)
if(hasRangeAttrPrice && hasRangeAttrListPrice && highAttrPrice == highAttrListPrice && lowAttrPrice==lowAttrListPrice )
Console.WriteLine("there is a range of prices-not on sale");
Console.WriteLine("not on sale");
else if(FSM_OnSale_ByAttribute)
if(hasRangeAttrPrice && hasRangeAttrListPrice && highAttrPrice < highAttrListPrice )
Console.WriteLine("sale range of prices with old range strikethrough");
else if(hasRangeAttrPrice && !hasRangeAttrListPrice && highAttrPrice == highAttrListPrice )
Console.WriteLine("range of prices (min - max price)");
else if(hasRangeAttrPrice && !hasRangeAttrListPrice)
Console.WriteLine("test");
else if(hasRangeAttrPrice && hasRangeAttrListPrice && highAttrPrice == highAttrListPrice )
Console.WriteLine("there is a range of prices");
Console.WriteLine("on sale");