Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

int discountPercent ( double price, int pastOrderCount ) returns the percent discount to be given, when given the price of the merchandise, and the number

int discountPercent(double price, int pastOrderCount)
returns the percent discount to be given, when given the price of the merchandise, and the number of orders the customer has placed in the past.
Past Order Count Percent Discount
pastOrderCount <100%
10<= pastOrderCount <=405%
40< pastOrderCount 10%
Orders over $1000.00 are given an automatic, additional 1% discount.
Worst-Case Boundary Values
1. List 5 additional worst-case boundary values as pairs.
2. How many additional cases should there be (in total) for the worst-case.
3. List 5 additional robust worst-case boundary values.
4. How many additional cases should there be (in total) for the robust worst-case.
Edge Testing
1. List the normal and robust edge values for both variables

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago