Ch12_Examples - 1 Programming Logic and Design 8th Edition Chapter 12 Programming Exercises 1 Assigned 2 Select one element of poor GUI design in a

Ch12_Examples - 1 Programming Logic and Design 8th Edition...

This preview shows page 1 - 4 out of 23 pages.

Programming Logic and Design, 8th Edition Chapter 12 Programming Exercises 1. Assigned 2.Select one element of poor GUI design in a program you have used. Describe how you would improve the design. 3.Select a GUI program that you have never used before. Describe how well it conforms to the GUI design guidelines listed in this chapter. 4. Assigned 5. Asigned 6. Design the wireframes and storyboard, interactivity diagram, object dictionary, and any necessary scripts for an interactive program for customers of the Dharma Day Spa. Allow customers the option of choosing a manicure ($10), pedicure ($25), or both ($32). After the customer clicks a Select button, display the price of the service. Answer: Storyboards Screen 1 1 Service o Manicure o Pedicure o Both Select
Image of page 1
Screen 2 Interactivity Diagram Object dictionary Object name Screen Variables affected Script? 2 Screen 1 Screen 2 Price of the service: $32 Exit
Image of page 2
number Label dharmaLabel 1 none none Label serviceLabel 1 none none RadioButton manicureRadioButton 1 servicePrice none RadioButton pedicureRadioButton 1 servicePrice none RadioButton bothRadioButton 1 servicePrice none Button selectButton 1 servicePrice selectRoutine() Label priceLabel 2 none none Label serviceAmtLabel 2 none none Button exitButton 2 none exitRoutine() Script public void selectRoutine() Declarations num MANICURE_AMT = 10 num PEDICURE_AMT = 25 num BOTH_AMT = 32 num servicePrice if manicureRadioButton.getChecked() then servicePrice = MANICURE_AMT else if pedicureRadioButton.getChecked() then servicePrice = PEDICURE_AMT else if bothRadioButton.getChecked() then servicePrice = BOTH_AMT endif endif endif serviceAmtLabel.setText(servicePrice) screen1.remove() screen2.display() return start screen1.display() stop public void exitRoutine() screen2.remove() return 7. Design wireframes and storyboard, interactivity diagram, object dictionary, and any necessary scripts for an interactive program for customers of the Friar Farm Market. Allow customers the option of choosing tomatoes ($3.00 per pound), peppers ($2.50 per pound), or onions ($2.25 per pound). The customer enters a weight in pounds in a text box. After the customer clicks a Select button, display the price of the order.
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture