Microsoft Visual Basic 2012 Shelly Cashman Chapter 6 Case Problem 5 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 code, create an event planning document for each event in the program. Create a Use Case Definition document for the application.
Date submitted: December 5, 2014
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 while driving cross country.
Program Procedures: In a Windows application, enter the speed limit and the number of days you plan to travel across the country. You will enter the number of hours you would like to drive for 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, Conditions:
1. The application opens displaying a title. The user enters the speed limit and the and 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 menu 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. Nonnumeric values should not be accepted.
2. The number of hours for one day of travel should not exceed 20 hours.
1. The application allows decimal entries.