Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do ( part 2 ) please. Use the visual C#. Give me the forms screenshot and code. Thank you .'Il Sprint 7:54 PM userwww.sfsu.edu ISYS

Do ( part 2 ) please. Use the visual C#. Give me the forms screenshot and code. Thank you image text in transcribed
.'Il Sprint 7:54 PM userwww.sfsu.edu ISYS 350, Spring 17, Assignment 2, Due Date:2/20/17 Part 1 Create a C# Form with a textbox and a button. The box is for a user to enter a number of seconds. And when the user clicks the button, the program displays the equivalent number of hours, minutes and seconds using a MessageBox.Show method. If the seconds entered is less than 60, your program should only display the seconds; if the seconds is a least 60 and less than 3600, your program should display minutes and seconds; if the second is at least 3600, your program should display hours, minutes and seconds. Use the following data to test your program 47 seconds: 47 seconds 645 seconds: 10 minutes, 45 seconds 7565 seconds: 2 hours, 6 minutes, 5 seconds 1. Input validation: The number of seconds cannot exceed 86400. You must use textbox's Validating event to do the validation. 2. Turn in the form's screenshot and the code. (Note: You can use the Alt PrintScrn keys to capture only the active window.) Part 2: An e company charges customers based on Kilowatt-Hours (Kwh) used. The rules to Kwh, 25 cents per Kwh 35 cents per Kwh h of the next 100 Kwh (up to 200 Kwh). (the first 100 Kwh used is still charged at 25 cents each) Each of the next 200 Kwh (up to 400 Kwh) All KHwh over 400, 50 cents per Kwh 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 ensure the KWH cannot exceed 2000 Test your program with (1 ) Kwh-3500(2) Kwh-250 2. Turn in the form's screenshot and the code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions