Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/mobilephonepurchase-vb-2010/
- Lab 10
- Note
- • Use the Requirements Document Fig 11-61
- • Use the Use Case Definition Fig 11-62
- • Be sure to create an event planning document for the user interface prior to writing code. The user interface should look like the interface shown in Fig 11-63
- • Write the code that will execute the program requirements
- MOBILE PHONE PURCHASE
- Design a Windows application and write the code that will execute according to the program requirements in Figure 11-61 and the Use Case definition in Figure 11-62 Before writing the code, create an event planning document for each event in the program. The completed Windows Form object and other objects in the user interface are shown in Figure 11-63 on the next page
- Figure 11-61
- REQUIREMENTS DOCUMENT
- Date submitted: July 18, 2014
- Application title: Mobile Phone Purchase
- Purpose: This Windows application calculates the costs for a mobile
- phone from the Mobile Phone Store.
- Program Procedures: From a Windows application, a buyer selects a mobile
- telephone for purchase. The buyer also can elect to buy a
- charger for the particular phone. A buyer is either in the store
- or is buying over the Internet. The program calculates the cost
- of the phone and charger purchased
- Algorithms, Processing, 1.The consumer enters their last name, street address, and zip
- and Conditions: code. If buying over the Internet, the buyer also enters an
- email address.
- 2. The buyer selects a phone from a list of phones.
- 3.The user can select the type of charger from the list of
- chargers.
- 4.Based on the phone and charger selected, the program
- calculates the total cost.
- 5.The total cost for a store purchase must include 7.75% sales
- tax. No sales tax is included for Internet sales.
- 6. An Internet sale generates a shipping charge of $28.00.
- 7. The types of phones and their costs are: Blasstur 451:
- $279.81; Elecque 9801: $193.71; Gainlet 3: $328.44;
- Nomadic 2900: $253.72; Querta 332: $479.36.
- 8.Three types of chargers are available: Auto: $63.92; Mobile:
- $42.66; Desktop: $27.31.
- 9.Write a comma-delimited text file to record each sale. The
- text file should contain the user last name, zip code, phone
- choice, charger style, and total cost.
- Notes and Restrictions: 1. Validate data the user enters using accepted standards.
- 2.In-store is the default type of buyer.
- 3.The Email label and text box does not display unless the
- user is an Internet buyer. An Internet buyer must enter an
- email address.
- Comments: 1. The picture shown in the application is available a
- scsite.com/vb2010/ch11/images[http://ge.tt/71dW2qN2/v/0].
- Its name is cell phone.jpg.
- 2.The program should use a three-tiered structure with
- presentation, business, and persistence classes.
- Figure 11-62
- USE CASE DEFINITION
- 1. The user views the opening screen.
- 2.The user enters their last name, street address, and zip code.
- 3.The user selects a phone from the phone choice list and, if desired, a charger from the charger
- style list.
- 4.The user selects either In-Store or Internet as the type of buyer. If an Internet buyer, the user
- must enter an email address.
- 5. The user clicks the Calculate Cost button.
- 6. The program displays the cost of the sale.
- 7. The program writes a record of the sale in a text file.
- 8. The user can click the Clear Form button to enter another sale.
- Figure 11-63
- Link to Image: http://ge.tt/71dW2qN2/v/0
- Download: http://solutionzip.com/downloads/mobilephonepurchase-vb-2010/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement