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

Info icon This preview shows pages 1–4. Sign up to view the full content.

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. Answer: Student answers will vary, but should address whether the interface is natural, predictable, attractive, easy to read, nondistracting, the extent to which the user can customize the screen, and whether the program/interface is forgiving. The student should explain which guideline is not met, and how she would change the application in order to conform to the guideline. 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. Answer: Student answers will vary, but should address whether the interface is natural, predictable, attractive, easy to read, nondistracting, the extent to which the user can customize the screen, and whether the program/interface is forgiving. 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

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

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

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '15
  • Return statement, web site, Void type, public void, Friar Farm Market

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern