Setunitprice name getcustomername notshippedcnt

This preview shows page 29 - 33 out of 47 pages.

We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Systems Architecture
The document you are viewing contains questions related to this textbook.
Chapter 13 / Exercise 18
Systems Architecture
Burd
Expert Verified
10. Complete the following tasks:a. Design a method that calculates the cost of a weekly cleaning job for Molly’s Maid Service. Variables include a job location code of Bfor business, which costs $200, or Rfor residential, which costs $140. The method should throw an exception if the location code is invalid.
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Systems Architecture
The document you are viewing contains questions related to this textbook.
Chapter 13 / Exercise 18
Systems Architecture
Burd
Expert Verified
Programming Logic and Design, 8e
b. Write a module that calls the module designed in Exercise 10a. If the module throws an exception, force the price of the job to 0.
c. Write a module that calls the module designed in Exercise 10a. If the module throws an exception, require the user to reenter the location code.
Programming Logic and Design, 8e
d. Write a module that calls the module designed in Exercise 10a. If the module throws an exception, force the location code to “R” and the base price to $140.
11. Complete the following tasks:a.Design a method that calculates the monthly cost to rent a roadside billboard.
Table 11-1Monthly billboard rental rates
Programming Logic and Design, 8eSolutions 11-32num SMALL_LOW = 35num MEDIUM_HIGH = 150

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture