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
The Water Sports Company soon will be producing and marketing a new model line of motor boats. The production manager, Michael J
Licemer1 [7]

Answer:

Explanation:

X - number of units sold

Total cost for production = 1,500,000 + 1600X

Total cost for purchasing = 2000X

a.  For 4000 units sold

Total cost for production = 1,500,000 + 1600 * 4000 = $7,900,000

Total cost for purchasing = 2000* 4000 =  $8,000,000

In this case producing is cheaper. Therefore, it is better to produce

b. Y - break-even point

Then :  1,500,000 + 1600 * Y = 2000* Y

So 1,500,000 = 400 Y

Y = 3750

At №of units less than 3750 purchasing will be the better option

And above 3750 producing will be the better option

4 0
3 years ago
Scarborough Faire Herb Farm is a small company specializing in selling organic fresh herbs, teas, and herbal crafts. Currently,
kirza4 [7]

Answer:

Sales This year will be $180,800

Explanation:

Total Sales Last Year = $160,000

Growth rate of sales = 13%

Sales This year = Total Sales last year x (1+Growth rate)

Sales This year = $160,000 x (1+13%)

Sales This year = $160,000 x (1+0.13)

Sales This year = $160,000 x 1.13

Sales This year = $180,800

4 0
3 years ago
Fair Oaks Farms’ manure management, specifically the use of cow manure to power their facilities and fuel their milk tankers, is
dedylja [7]

Answer:

Natural resources

Explanation:

Im not quite sure what your asking but if im right I think  they have the competitive advantage of natural resource which would be the cow poop/manure that theyre using to power there facilities and fuel milk tankers.

sorry if im wrong

3 0
2 years ago
Year cash flow 0 –$ 32,500 1 14,300 2 17,400 3 11,700 required: what is the irr of the above set of cash flows?
valina [46]
IRR = 15.76% i got that as my answer


4 0
3 years ago
In December 2019, Todd, a cash basis taxpayer, paid $1,200 fire insurance for the calendar year 2020 on a building he held for r
77julia77 [94]

Answer:

D) Todd should include the $500 in 2020 gross income in accordance with the tax benefit rule.

Explanation:

Since Todd is a cash basis taxpayer, he included the $1,500 insurance premium in his 2019 tax return. Cash basis taxpayer report revenues or expenses when the cash is received or paid, not when the service is provided.

Since he received a $500 refund in 2020, he should include it in his 2020 tax return. As a cash basis taxpayer, any money received is considered income.

5 0
3 years ago
Other questions:
  • You purchased 2,200 shares of the New Fund at a price of $25 per share at the beginning of the year. You paid a front-end load o
    12·1 answer
  • Weber Company purchased a mining site for $1,750,000 on July 1. The company expects to mine ore for the next 10 years and antici
    11·1 answer
  • Which action would a government most likely take to reduce its
    11·1 answer
  • What federal agency collects income taxes
    5·1 answer
  • In the Solow growth model without population growth or technological progress, if investment is greater than depreciation, the c
    15·2 answers
  • Suppose that Greece and Switzerland both produce beer and olives. Greece's opportunity cost of producing a crate of olives is 5
    9·1 answer
  • Cullumber Company incurred $800000 of research and development costs in its laboratory to develop a new product. It spent $15000
    6·1 answer
  • Marsha is 23 years old and single. She cannot be claimed as a dependent by another taxpayer. Marsha earned wages of $18,500 and
    11·1 answer
  • Word of mouth promotion is also known as what?
    7·2 answers
  • The Blue Lagoon has a return on equity of 23.62 percent, an equity multiplier of 1.48, and a capital intensity ratio of 1.06. Wh
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!