Question: In Microsoft Visual Studio, create a C# Form with a textbox to enter Kwh used, a read-only textbox to display the electricity charges, and a

In Microsoft Visual Studio, create a C# Form with a textbox to enter Kwh used, a read-only textbox to display the electricity charges, and a button to compute the charges. The Kwh used could be a number with decimals.

An electric company charges customers based on Kilowatt-Hours (Kwh) used. The rules to compute the charge are:

First 100 Kwh, 35 cents per Kwh

Each of the next 100 Kwh (up to 200 Kwh), 45 cents per Kwh

(the first 100 Kwh used is still charged at 35 cents each)

Each of the next 300 Kwh (up to 500 Kwh) 65 cents per Kwh

All Kwh over 500, 80 cents per KH

In Microsoft Visual Studio, create a C# Form with a textbox to

Requirements:

1. Input validation: Use the KWH textbox validating event to ensure the KWH cannot exceed 2000. Test your program with (1) Kwh=4500, (2) Kwh = 350

2. Turn in the forms screenshot and the code.

Form3 Enter KH used Eectricty charges Compute Charges

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!