Question
Write a class Plumbers that handles emergency plumbing calls. The company handles natural floods and burst pipes. If the customer selects a flood, the program
Write a class "Plumbers" that handles emergency plumbing calls. The company handles natural floods and burst pipes. If the customer selects a flood, the program must prompt the user to determine the amount of damage for pricing. Flood charging is based on the numbers of damaged rooms. 1 room costs $300.00, 2 rooms cost $500.00, and 3 or more rooms cost $750.00. Pipe bursting is based on the number of pipes: 1 pipe costs $50.00, 2 pipes cost $70.00, and 3 or more pipes cost $100.00. The Plumber class should contain a nested class to handle billing charges. Use And, Or, and Not in the if statements to obtain the customers' inputs.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started