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

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

Programming Logic and Design, 8th EditionChapter 12Programming Exercises1.Assigned2.Select one element of poor GUI design in a program you have used. Describe howyou would improve the design.1
3.Select a GUI program that you have never used before. Describe how well itconforms to the GUI design guidelines listed in this chapter.
4.Assigned5.Asigned6.Design the wireframes and storyboard, interactivity diagram, object dictionary, andany necessary scripts for an interactive program for customers of the Dharma DaySpa.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.
Screen 2Interactivity DiagramObject dictionaryObject nameScreenVariables affectedScript?2Screen 1Screen 2Price of the service:$32Exit
numberLabel dharmaLabel1nonenoneLabel serviceLabel1nonenoneRadioButtonmanicureRadioButton1servicePricenoneRadioButton pedicureRadioButton1servicePricenoneRadioButton bothRadioButton1servicePricenoneButton selectButton1servicePriceselectRoutine()Label priceLabel2nonenoneLabel serviceAmtLabel2nonenoneButton exitButton2noneexitRoutine()Scriptpublic void selectRoutine()Declarationsnum MANICURE_AMT = 10num PEDICURE_AMT = 25num BOTH_AMT = 32num servicePriceif manicureRadioButton.getChecked() thenservicePrice = MANICURE_AMTelseif pedicureRadioButton.getChecked() thenservicePrice = PEDICURE_AMTelseif bothRadioButton.getChecked() thenservicePrice = BOTH_AMTendifendifendifserviceAmtLabel.setText(servicePrice)screen1.remove()screen2.display()returnstartscreen1.display()stoppublic void exitRoutine()screen2.remove()return7.Design wireframes and storyboard, interactivity diagram, object dictionary, and anynecessary 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.50per pound), or onions ($2.25 per pound). The customer enters a weight in pounds in atext box. After the customer clicks a Select button, display the price of the order.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 23 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Return statement, web site, Void type, public void, Friar Farm Market

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture