Thursday, April 24, 2014
Joe Automotive
namespace Joe_Aotumotive
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnCalculate_Click(object sender, EventArgs e)
{
decimal subTotal = 0;
if (chkOilChange.Checked)
{
subTotal += 26.00m;
}
if (chkLubeJob.Checked)
{
subTotal += 18.00m;
}
if (chkRadiator.Checked)
{
subTotal += 30.00m;
}
if (chkTransmission.Checked)
{
subTotal += 80.00m;
}
if (chkInspection.Checked)
{
subTotal += 15.00m;
}
if (chkMuffler.Checked)
{
subTotal += 100.00m;
}
if (chkTireRotation.Checked)
{
subTotal += 20.00m;
}
//===========================
decimal part;
decimal.TryParse(txtPart.Text, out part);
decimal labor;
decimal.TryParse(txtLabor.Text, out labor);
decimal partNlabor;
partNlabor = part + labor;
//================================
decimal tax = part * 0.098m;
//================================
decimal total = subTotal + partNlabor + tax;
//==================================
//Display
txtServiceNLabor.Text = subTotal.ToString("C");
txtParts.Text = partNlabor.ToString("C");
txtTaxOnParts.Text = tax.ToString("C");
txtTotal.Text = total.ToString("C");
}
private void btnClear_Click(object sender, EventArgs e)
{
txtPart.Clear();
txtLabor.Clear();
txtServiceNLabor.Clear();
txtParts.Clear();
txtTaxOnParts.Clear();
txtTotal.Clear();
chkOilChange.Checked = false;
chkLubeJob.Checked = false;
chkRadiator.Checked = false;
chkTransmission.Checked = false;
chkInspection.Checked = false;
chkMuffler.Checked = false;
chkTireRotation.Checked = false;
}
private void btnExit_Click(object sender, EventArgs e)
{
Close();
}
}
}
Labels:
Week(9-10)
Subscribe to:
Post Comments (Atom)

THE BENEFITS OF BEING UNDER THE INFLUENCE OF ALCOHOL BY STEVE FINNELL
ReplyDeleteYou do not have to be legally drunk to to be under the influence of alcohol. A couple of glasses of wine or two or three beers and you are under the influence of alcohol.
THE BENEFITS OF BEING UNDER THE INFLUENCE.
1. It makes it easier to physically and mentally abuse your spouse and children.
2. It makes committing a crime more likely.
3. It removes the fear of being caught after you have committed a crime.
4. It removes the inhibitions that may keep you for committing fornication.
5. It may help raise your blood pressure.
6. It reduces your cognitive skills. That would be great.
7. It keeps you from being too proficient when driving a car or operating heavy equipment.
8. It enhances your ability to be loud and boisterous. People like that in a person.
9. It is a desired quality if you want work in the health care
profession. Surgery always goes better when a surgeon has had a couple of glasses of wine.
10. It will help you if are caring for children. Parents like those watching children to be under the influence of alcohol.
11. Unbelievers will look for Christians who have had two or three beers for answers to their questions about seeking God's truth.
12. Christians who are under the influence, but not legally drunk are a great witness for Jesus. Everyone admires people who can handle their liquor.
13. And the list go on..................................
YOU ARE INVITED TO FOLLOW MY BLOG. http://steve-finnell.blogspot.com