Professional Documents
Culture Documents
carpet: Using Using Using Using Using Namespace Class Double String Public Public String Double Double String
carpet: Using Using Using Using Using Namespace Class Double String Public Public String Double Double String
//Purchase.cs
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Threading.Tasks;
namespace Carpet
{
class CARPET
{
double width, length, total, COE, j;
string text, output;
public CARPET()
{}
public string Process(double wid, double len, string tex)
{
width = wid;
length = len;
text =tex;
COE = getPrice(text);
total = getTotal(length, width, COE);
output = String.Format("{0:C}", total);
}
return output;
//Program.cs
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Threading.Tasks;
System.Windows.Forms;
namespace Carpet
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}