Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C# Programming Write a program that shows the formatted retail price of shirts w

ID: 3883222 • Letter: C

Question

C# Programming

Write a program that shows the formatted retail price of shirts when there is a 15% markdown. Test the program by performing a compile-time initialization with an item labeled "Open Collar Running Shirt," which has a wholesale price of $41.00. How much savings is expected with the markdown? Display appropriately labeled retail and mark-down values for the shirt. Once you get that running, go back into your source code, add lines of code that will reassign the memory location's values for a Razorback T-Shirt, which has a retail price of $36.00. Add additional lines of code, which will display the new item's information along with the previous item. What happens if the markdown g 20% or 10%?

Explanation / Answer

Here is your CS program:

CS Program:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace check1

{

class Program

{

static void Main(String[] args)

{

double price,markdown;

double s,p;

Console.Write("Enter price of Open Coller Running Shirt: ");

p=Convert.ToDouble(Console.ReadLine());

Console.Write(" Enter the markdown %: ");

markdown=Convert.ToDouble(Console.ReadLine());

Console.Write(" Open Coller Running Shirt Wholesale price= ${0}",p);

price=p/(1-markdown/100);

s=price*markdown/100;

Console.Write(" Saving on Open Coller Running Shirt= ${0}",s);

Console.Write(" Open Coller Running Shirt Retail price = ${0}",price);

Console.Write(" Enter a Ranzorback T-Shirt retail price: ");

price=Convert.ToDouble(Console.ReadLine());

Console.Write(" Enter the markdown %: ");

markdown=Convert.ToDouble(Console.ReadLine());

Console.Write(" Ranzorback T-Shirt retail price= ${0} ",price);

s=price*markdown/100;

p=price-s;

Console.Write(" Saving on Ranzorback Shirt= ${0}",s);

Console.Write(" Ranzorback Shirt wholesale price= ${0}",p);

}

}

}

I hope this solves your problem

Comment if you have any problem in above code

And please give it a thumbs up if it solved your problem :)