The calculation of the bill will be used the following rules: -The bill will be exempted for usage 20m3 and below. -For the next 15m3 is charged at 50cents/m3. -The next 20m3 is charged at 70cents for every additional m3. -The next 25m3 is charged at $1.00 for every additional m3. -Any further m3 is charged at $1.20 for every additional m3. In this case, the input can be up to 200 m3. The system only accepts the numeric(non-negative) values as the input. Other than the accepted value will be rejected by the system with an error message. The output of the system will be the total bill charged.  write out equivalence partition (EP) for the above specification.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 14PE
icon
Related questions
icon
Concept explainers
Question

The calculation of the bill will be used the following rules:

-The bill will be exempted for usage 20m3 and below.
-For the next 15m3 is charged at 50cents/m3.
-The next 20m3 is charged at 70cents for every additional m3.
-The next 25m3 is charged at $1.00 for every additional m3.
-Any further m3 is charged at $1.20 for every additional m3.
In this case, the input can be up to 200 m3. The system only accepts the numeric(non-negative) values as the input. Other than the accepted value will be rejected by the system with an error message. The output of the system will be the total bill charged. 
write out equivalence partition (EP) for the above specification.

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage