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
A company invested​ $45,000 in Yale Co. stock. The investment represented​ 5% of the voting stock of Yale Co. If the Yale Co. st
hjlf

Answer:

the dividend revenue account is credited

Explanation:

As we know that the dividend is the company profit that is divisible and the same is to be issued to the shareholder with respective to the number of shares purchased

In the case when Yale Co. paid the dividend so here the dividend revenue account is credited in the case when the company received the dividend

Hence, the dividend revenue account is credited

3 0
3 years ago
the cost of an automobile is $9,000 and after a period of three years it will have an estimated salvage value of $5,200. a down
Kisachek [45]

Salvage fee is the expected book fee of an asset after depreciation is complete, primarily based totally on what a corporation expects to get hold of in alternate for the asset on the quit of its beneficial life.

The required details for  salvage value in given paragraph

Value of Factors given in query are wrong, accurate values are given below

(P/F,1%,36) = zero.698925

(A/P,1%,36) = zero.033214

Loan amount = 9000 -1000 = 8000

Present really well worth of salvage fee = 5200*(P/F,1%,36) = 5200 * zero.698925 = 3634.41

Required mortgage to be repaid over three yrs = 8000 - 3634.41 = 4365.59

Monthly payment = 4365.59 * (A/P,1%,36) = 4365.59 * zero.033214 = 144.9987 ~ 145.

An expected salvage fee may be decided for any asset that a corporation can be depreciating on its books over time. Every corporation may have its very own requirements for estimating salvage fee. Some agencies might also additionally select to constantly depreciate an asset to $zero due to the fact its salvage fee is so minimal. It is primarily based totally at the fee a corporation expects to get hold of from the sale of the asset on the quit of its beneficial life.

In a few cases, salvage fee might also additionally simply be a fee the corporation believes it is able to achieve with the aid of using promoting a depreciated, inoperable asset for parts.

To know about salvage value click here

brainly.com/question/28344861

#SPJ4

6 0
1 year ago
Which marketing orientation states that consumers will favor products that offer the most in​ quality, performance, and innovati
Crazy boy [7]

Product concept is the marketing orientation states that consumers will favor products that offer the most in​ quality, performance, and innovative​ features.  Consumers are always looking for products that are high qualiy but aren't outragious in pricing or difficulty. When products better fit consumers needs at a price they can afford, it makes them more likely to spend the money and refer people to the products.

4 0
3 years ago
A company is considering the purchase of new equipment for $57,000. The projected annual net cash flows are $23,400. The machine
lina2011 [118]

Answer:

Net Present Value = $3,304.069

Explanation:

<em>To determine whether or not the investment was right, we will need to determine the net present value of the investment (NPV). </em>

<em>The NPV is the difference between the present value PV of cash inflows and the PV of cash outflows. A positive NPV implies a good investment decision and a negative figure implies the opposite. </em>

NPV of an investment(NPV)

NPV = PV of Cash inflows - PV of cash outflow

The cash inflow is an annuity.

PV of annuity= A× 1 -(1+r)^(-n)/r

A- Annual cash flow ,- 23,400 r - discount rate - 8%, number of years- 3

Present Value of cash inflow =23,400 × (1- (1.08)^(-3)/0.08 = 60,304.06

Initial cost = 57,000

Net Present Value = 60,304.06 - 57,000 = 3,304.069

Net Present Value = $3,304.069

<em>Kindly note that a discount rate of 8% was used as it is the opportunity cost of capital for the investment.</em>

     

4 0
3 years ago
Oriole Company issues $200,000, 20-year, 9% bonds at 104. Prepare the journal entry to record the sale of these bonds on June 1,
user100 [1]

Answer:

Dr Cash $208,000

Cr Bonds payable $200,000

Cr Premium on bonds payable $8,000

Explanation:

Preparation of the journal entry to record the sale of these bonds on June 1,

Based on the information given we were told that the company issues the amount of $200,000 at 104 which means the that the journal entry to record the sale of these bonds on June 1 will be:

Dr Cash $208,000

(2,000 × $104)

Cr Bonds payable $200,000

(2,000 × $100)

Cr Premium on bonds payable $8,000

(2,000 ×$4)

Note:-

$200,000/100 =$2,000

3 0
3 years ago
Other questions:
  • Which graph shows the relationship between the aggregate price level and the aggregate quantity supplied over time?
    5·1 answer
  • The ____ is an award given by the president of the united states to organizations that apply and are judged to be outstanding in
    10·1 answer
  • What will happen to the U.S. Housing Market?
    10·1 answer
  • The following transactions occur for Badger Biking Company during the month of June:
    14·1 answer
  • A government collects $700 billion annually in tax revenue. Each year it allocates $130 billion to interest payments that it mus
    11·1 answer
  • David is a drug rep for a pharmaceutical company. He is in the process of prospecting at various medical offices to see who migh
    12·2 answers
  • Dopson's Hardware was in bad financial shape. It owed so much money that vendors put the store on a cash-only delivery basis. As
    7·1 answer
  • Ay someone explain why $MARA &amp; $RIOT stock been doing real bad while BTC be going up up and up ​
    6·1 answer
  • In taking a physical inventory at the end of year 2013, Grant Company forgot to count certain units. Indicate how this error aff
    6·1 answer
  • Identify at least four different types of financial statement users and discuss why each would use the financial statements.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!