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
Which type of rice will remain firm and separate when cooked properly?
Soloha48 [4]
Long-Grained rice. Hope this helps:)
5 0
3 years ago
First​ Class, Inc., expects to sell 22,000 pool cues for $12.00 each. Direct materials costs are $4.00​, direct manufacturing la
MatroZZZ [7]

Answer:

budgeted costs for direct​ materials

  • $88,000

budgeted direct manufacturing​ labor

  • $132,000

budgeted manufacturing​ overhead

  • $18,480

Explanation:

Direct materials costs are $4.00 per pool cue.

Direct manufacturing labor is $6.00​ per pool cue.

Manufacturing overhead is $0.84 per pool cue.

total budgeted direct materials = 22,000 x $4 = $88,000

total budgeted direct labor = 22,000 x $6 = $132,000

total budgeted manufacturing overhead = 22,000 x $0.84 = $18,480

The information about the beginning and ending inventories is not relevant to this question since it only deals with budgeted or estimated costs which may or may not differ from actual costs.

3 0
3 years ago
Piedmont Hotels is an all-equity company. Its stock has a beta of .82. The market risk premium is 6.9 percent and the risk-free
katrin2010 [14]

Answer:

11.86%

Explanation:

Piedmont hotels can be described as an all-equity company

Its stock has a beta of 0.82

The market risk premium is 6.9%

The risk free rate is 4.5%

The adjustment is 1.7%

Therefore, the required rate of return can be calculated as follows

Required rate of return= Risk free rate of return + ( beta×market risk premium) + adjustment

= 4.5% + (0.82×6.9%) + 1.7%

= 4.5% + 5.658 + 1.7%

= 11.86%

Hence the required rate of return for the project is 11.86%

7 0
3 years ago
_______________ involves two or more individuals who believe that their attitudes, behaviors, or preferred goals are in oppositi
Elza [17]

Answer:B

Explanation:

7 0
2 years ago
Meat​ Packers, Incorporated​ (MPI) preserves and packages various kinds of meats for transportation to grocery stores. To prepar
Grace [21]

Answer:

Fixed costs = $13,000

Variable costs = $450,000

Explanation:

Fixed costs are costs that do not vary with production. In this question, they are rent payments and monthly payments on meat packaging equipment.

Fixed cost = $10,000 + $3,000 = $13,000

Variable costs are costs that vary with production. In this question, they are the cost of purchase of raw meat, wages and fuel costs.

Variable costs = ($20 + $90 + $40) × 3000 = $450,000

I hope my answer helps you.

8 0
3 years ago
Other questions:
  • What are some possibilities for handling conflict within a professional environment?
    7·1 answer
  • Parker Inc. is obligated to pay its creditors $33,333 very soon. If the market value of the firm's assets equals $49,700, calcul
    15·1 answer
  • This is what it said when I tried to put a lenny face as a question: Don't use such phrases here, not cool! It hurts our feeling
    7·2 answers
  • Which of the following is NOT a creative thinking exercise entrepreneurs use to generate ideas?
    10·1 answer
  • A group of university students toys coconuts from farmers' markets. The students consume the meat of the coconuts for food and u
    8·1 answer
  • What are three locations where you can view your Focused Review for a practice or proctored assessment?
    5·1 answer
  • A focused differentiation strategy requires offering unique features that fulfill the demands of a narrow market. All of the fol
    13·1 answer
  • Motorola's worldwide advertising campaign for cell phones is an attempt to provide a common theme and presentation in all market
    12·1 answer
  • Alejandro Yago leased a Jeep for $209.00 per month for 60 months.He paid a deposit of $850.00, a title fee of $45.00, and a lice
    12·1 answer
  • Current disposable income held to buy consumption goods in the future is referred to as:______.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!