Distance Traveled Calculator
Design a Windows application and write the code that will execute according to the program requirements shown in Figure 6-132. Before writing the codes, create an event planning document for each event in the program. Create a use Case Definition document for the application.
Requirements Document
Application title: Vacation Distance Calculator Windows Application
Purpose: This application computes the number of miles traveled given the speed limit and the number of days traveled driving cross country.
Program Procedure: In a Windows Application, the user enters the speed limit and the number of days you plan to travel cross country. You will enter the number of hours you will like to drive each of the days based on places you plan to visit as you drive and other factors. For example, the first day you plan to drive only 4 hours because you are driving after work. The application displays the distance that you are able to travel for the entire trip based on the speed limit and the hours driven.
Algorithms, Processing, and Conditions:
1. The application opens displaying a title. The user enters the speed limit and the number of days you plan to drive.
2. The user clicks the Distance button to request the number of hours you plan to drive each day. The result of the total number of miles you plan to drive over the entire trip will be displayed.
3. A File menu contains a Clear and an Exit option. The Clear item clears the result and the entered number of miles per hour and time traveled. The Exit menu item closes the application.
Notes and Restrictions:
1. Non-numeric values should not be accepted.
2. The user of hours for one day of travel should not exceed 20 hours.
Comments: