Question: distance traveled application. starting out with visual C # Designate the Calculate button as the accept button, that is, the user can press the ENTER

distance traveled application. starting out with visual C#

  • Designate the Calculate button as the accept button, that is, the user can press the ENTER key to invoke the calculate button
  • Designate the Exit button as the cancel button, that is, the user can press the ESC key to invoke the exit button Calculate button
  • Appropriate variables should be used
  • calculate button
  • Use try...catch to make sure that data entered is appropriate; if data entered is not appropriate provide an error message in a message box and set the focus at the appropriate textbox.
  • Display output as appropriate.
    • Distance Traveled - to 1 decimal place

Reset button

  • Clear all the input textboxes and output labels
  • Set the cursor at the first textbox

Exit button

  • Exit the application
    enter speed in miles per hours
    enter number of hours (only whole hours allowed)

    total distance traveled

    calculate distance reset exit

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!