using System;
using [Link];
using [Link];
using [Link];
using [Link];
namespace ProgFundamentals7 //DO NOT CHANGE the name of namespace
{
public class Program //DO NOT CHANGE the name of class
'Program'
{
public static void Main(string[] args) //DO NOT CHANGE 'Main'
Signature
{
//Implement your code here
[Link]("Enter the name of the product :");
string str = [Link]();
[Link]("Enter the price of the product :");
int price = Convert.ToInt32([Link]());
[Link]("Is the product on SALE (yes/no) :");
string sale = [Link]();
// [Link]("Enter number of the product sold in day 1:");
// int d1 = Convert.ToInt32([Link]());
// [Link]("Enter number of the product sold in day 2 :");
// int d1 = Convert.ToInt32([Link]());
// [Link]("Enter number of the product sold in day 3:");
// int d1 = Convert.ToInt32([Link]());
double d1p, d2p, d3p;
if(sale == "yes")
{
// d1p =d1 - d1*(0.07) ; d2p = d1p - d1p*(0.07); d3p = d2p -
d2p*(0.07);
[Link]("Enter number of product sold in day 1");
int d1 = Convert.ToInt32([Link]());
[Link]("Enter number of product sold in day 2");
int d2 = Convert.ToInt32([Link]());
[Link]("Enter number of product sold in day 3");
int d3 = Convert.ToInt32([Link]());
d1p = price- price*(0.07);
d2p = d1p - d1p*(0.07);
d3p = d2p - d2p*(0.07);
[Link](str);
[Link]("Day 1 sales total : " + d1p*d1);
[Link]("Day 2 sales total : " + d2p*d2);
[Link]("Day 3 sales total : " + d3p*d3);
}
else
{
[Link]("Enter number of product sold in day 1");
int d1 = Convert.ToInt32([Link]());
[Link]("Enter number of product sold in day 2");
int d2 = Convert.ToInt32([Link]());
[Link]("Enter number of product sold in day 3");
int d3 = Convert.ToInt32([Link]());
[Link](str);
[Link]("Day 1 sales total : "+ d1*price);
[Link]("Day 2 sales total : "+ d2*price);
[Link]("Day 3 sales total : "+ d3*price);
}
}
}
}