assignment3 (1) - QUESTION http\/online.sfsu.edu\/dchao\/ISYS350A3F13.htm PART 1 using using using using using using using using using System

assignment3 (1) - QUESTION...

This preview shows page 1 - 3 out of 9 pages.

QUESTION: PART 1usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespaceWindowsFormsApplication6{publicpartialclassForm1: Form{publicForm1(){InitializeComponent();}privatevoidradioButton1_CheckedChanged(objectsender, EventArgse){}privatevoidbutton1_Click(objectsender, EventArgse){doublehours, due;hours = double.Parse(textBox1.Text);if(radioButton1.Checked){if(hours <= 10)due = 9.95;elsedue = 9.95 + 2 * (hours - 10);}elseif(radioButton2.Checked){if(hours <= 20)due = 14.95;elsedue = 14.95 + (hours - 20);}elsedue = 19.95;if(checkBox1.Checked)due = due * 0.80;
Background image
label3.Text = due.ToString("C");}privatevoidtextBox1_Validating(objectsender, CancelEventArgse){doublehours;hours = double.Parse(textBox1.Text);if(hours > 744){MessageBox.Show("The number of hours used in a month cannot exceed 744. Please enter a number less than 744.");}}privatevoidForm1_Load(objectsender, EventArgs
Background image
Image of page 3

You've reached the end of your free preview.

Want to read all 9 pages?

  • Fall '10
  • LI
  • Windows Forms, .NET Framework, private void

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes