1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DENIUS [597]
3 years ago
13

Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with e

very purchase of 8 or more books. It offers regular customers 1 free book with every purchase of 7 or more books, and offers 2 free books with every purchase of 12 or more books. Write a statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased.
Business
1 answer:
EastWind [94]3 years ago
5 0

Answer:

A statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased.

if(nbooksPurchased > 4){

if(isPremiumCustomer){

freeBooks = 1;

if(nbooksPurchased > 7){

freeBooks = 2;

}

}else{

freeBooks = 0;

if(nbooksPurchased > 6){

freeBooks = 1;

}

if(nbooksPurchased > 11){

freeBooks = 2;

}

}

}else{freeBooks = 0;}

Explanation:

You might be interested in
When footwear has greater traction, what does this mean?
timofeeve [1]

Answer:

B

Explanation:

Think of the football cleats on the field.  They have better grip which is why they don't slip as often as someone on a basketball court would.

8 0
3 years ago
Read 2 more answers
Seth is mentally incompetent but has not been adjudged by a court to be incompetent. Seth enters into a contract with Toby for t
Kaylis [27]

Answer:

Void

Explanation:

Void is the term of law, which is defined as the contract is not valid currently, and the parties of the contract are not held to its terms. The void contract is the one which is generally unenforceable.

The contract could be void because of many reasons like the contract need one party to perform that act which is impossible or in that case, where one party is not mentally incompetent.

So, in this case, the contract is most likely to be void as the contract with the party who is mentally incompetent, though the party has not been adjudged through court.

6 0
3 years ago
How do economists and bankers determine how much the money supply will increase with each deposit?
nordsb [41]
They do it by calculating the interest payments I believe. Hope this helped.
5 0
3 years ago
Depreciation for a tax-paying firm:_________.
r-ruslan [8.4K]

Answer: a) increases expenses and lowers taxes.

Explanation:

Depreciation accounts for the wear and tear in fixed assets over their period of use. It is accounted for every period in the Income Statement as an expense which means that its addition increases the business's expenses.

It does that the advantage of being tax deductible however. This then means that it can be subtracted from Net Income for tax purposes. When that is done, it will reduce the Net Income thereby reducing the amount of taxes that can be charged on the company.

5 0
2 years ago
A vendor has learned that, by pricing caramel apples at $1.25, sales will reach 111 caramel apples per day. Raising the price to
Wittaler [7]

Solution:

Slope = y2 - y1 / x2 -x1

slope = 81 - 111 / $2.00 - $1.25

slope = -30/$0.75

So every $0.75 increase causes a decrease of 30 sales.

So the rise over run or slope of the line is -30/0.75 = -40/1

Start forming the equation:

y = mx + b

y = -40x + b

Substitute one of the points to find the y-intercept:

81 = -40(2) + b

Isolate for the y-intercept:

b = 161

So,

y = -40x + 161

7 0
3 years ago
Other questions:
  • If the marginal product of labor is increasing, the marginal cost of output must be
    14·1 answer
  • Which group is most likely to utilize a tax advantages instrument such as an ira?
    8·1 answer
  • According to the principles of integrated marketing communication, it is critical for ________.
    5·1 answer
  • A can be cut from chickens, pheasants,
    9·1 answer
  • The September 30 bank statement for Cadieux Company and the September ledger account for cash are summarized here: BANK STATEMEN
    7·1 answer
  • When total cost or total variable cost is​ increasing, there are increasing marginal returns to the variable input.
    11·1 answer
  • Does the Constitution set down the rights of the people? Yes or No
    11·2 answers
  • _______________ is the amount of money left over after paying all of the business expenses. (Select the best answer.) RevenueGro
    15·1 answer
  • Washburn Company produces earbuds. During the year, manufacturing overhead costs are estimated to be $216,000. Estimated machine
    11·1 answer
  • Smashed Pumpkins Co. paid $88 in dividends and $526 in interest over the past year. The company increased retained earnings by $
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!