The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
ISYS350, Assignment 2
I need help this Homework, I should use MS Visual Studio 2015.
the Program should look like the image I attacked...
If you can post Visual studio file, it will be a great thanks!
ISYS350, Assignment 2ISYS350, Assignment 2ISYS350, Assignment 2
Question: An electric company charges customers based on Kilowatt-Hours (Kwh) used. The rules to compute the charge are:
First 100 Kwh, 20 cents per Kwh
Each of the next 100 Kwh (up to 200 Kwh), 30 cents per Kwh
(the first 100 Kwh used is still charged at 20 cents each)
Each of the next 200 Kwh (up to 400 Kwh) 45 cents per Kwh
All KHwh over 400, 60 cents per KH
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.
Requirements:
1. Input validation: Use the KWH textbox validating event to enforce two validation rules:
a. The Kwh contains digits only. The validating procedure should use a Try/Catch block to throw an error message “Please enter digits only!” if the entered Kwh is not a valid number or blank.
b. The Kwh cannot exceed 2000. Test your program with (1) , (2) Kwh = 250
Attachments:
-----------