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
Joe Dumars Company has outstanding 40,000 shares of $5 par common stock which had been issued at $30 per share. Joe Dumars then
satela [25.4K]

Answer:

<u>Transaction 1</u>

Assets - Decrease by $225,000

Cash expended to acquire shares = 5,000 * 45 = $225,000

Liabilities - No effect

Stockholders' equity - Decrease by $225,000

Increase in Treasury shares leads to decrease in the amount stockholders hold.

Paid In Capital - No effect

Retained Earnings - No Effect

Net Income - No Effect

<u>Transaction 2</u>

Assets - Increase by $98,000

Cash increased because of sale of stock = 2,000 * 49 = $98,000

Liabilities - No effect

Stockholders' equity - Increase by $90,000

= 2,000 * 45 = $90,000

Cost method means that when debiting from Treasury account, use original cost.

Paid In Capital - Increase by $8,000

If stock is sold for amount different from what it was bought, it goes into this account. If it is larger than it was bought for then this account increases and vice versa.

Retained Earnings - No Effect

Net Income - No Effect

<u>Transaction 3</u>

Assets - Increase by $20,000

Cash from sale of stock = 500 * 40 = $20,000

Liabilities - No effect

Stockholders' equity - Increase by $22,500

= 500 * 45 = $22,500

Paid In Capital - Decrease by $2,500

If stock is sold for amount different from what it was bought, it goes into this account. If it is smaller than it was bought for then this account decreases and vice versa.

Retained Earnings - No Effect

Net Income - No Effect

4 0
3 years ago
You expect KT industries​ (KTI) will have earnings per share of $ 6 $6 this year and expect that they will pay out $ 1.25 $1.25
Hatshy [7]

Answer:

$8.93

Explanation:

The payment made to the stockholders is known as dividend.

Price of the stock can be determined by calculating the present value of all future expected dividends using cost of capital.

In this question $1.25 per share dividend is paid and rate of return / cost of capital is 14%, so price of stock will be calculated as follow.

Price of the share = Dividend / Cost of Capital = $8.93

Price of the share = $1.25 / 14% = $8.93

5 0
3 years ago
On June 19, Don Co., a U.S. company, sold and delivered merchandise on a 30-day account to Cologne GmbH, a German corporation, f
nirvana33 [79]

Answer: $197,600

Explanation: Don Co is making a sale to Cologne GmbH and on the date of the transaction there is an exchange rate called the spot rate. Don Co will record in its books the value of the transaction on the set date at the spot rate which is:

200,000 euros @ .988

= $197,600

on the date of the settlement of the debt by Cologne GmbH, the spot rate is also considered which will be 200,[email protected] .995 = $199,000

Note that on the payment date, the exchange rate has gone up and now Don Co has a higher receivable value that what is in its book.

the difference of $1,400 ($199,000-$197,600) will now be noted in the books of Don Co as an exchange gain on the transaction.

8 0
3 years ago
Leader Corporation Company uses a job-order costing system with a single plantwide pre-determined overhead rate based on machine
taurus [48]

Answer:

Selling price per unit= $196

Explanation:

<u>First, we need to calculate the predetermined overhead rate:</u>

<u></u>

Predetermined manufacturing overhead rate= total estimated overhead costs for the period/ total amount of allocation base

Predetermined manufacturing overhead rate= (400,000 / 50,000) + 6

Predetermined manufacturing overhead rate= $14 per machine hour

<u>Now, we can allocate overhead and calculate the total cost:</u>

<u></u>

Allocated MOH= Estimated manufacturing overhead rate* Actual amount of allocation base

Allocated MOH= 14*100= $1,400

Total cost= 1,400 + 750 + 2,750

Total cost= $4,900

<u>Finally, the selling price per unit:</u>

<u></u>

Unitary cost= 4,900/40= $122.5

Selling price= 122.5*1.6

Selling price= $196

3 0
3 years ago
Municipal bonds are issued by whom?
posledela
Municipal bonds are debt obligations issued by states, cities, counties and other governmental entities.
6 0
3 years ago
Read 2 more answers
Other questions:
  • A successful CRM program is expected to help a company achieve all of the following EXCEPT ________.
    10·2 answers
  • ack Hammer invests in a stock that will pay dividends of $3.06 at the end of the first year; $3.42 at the end of the second year
    14·1 answer
  • In order for information to be meaningful, a firm's accounting processes and procedures should be certified as accurate by accep
    12·1 answer
  • The principle of diversification tells us that:
    5·1 answer
  • Gasoline and bicycles are substitutes in consumption. Suppose we increase the federal gasoline tax to $1 per gallon.
    8·1 answer
  • Profits and losses play an important role in helping a. to signal to government which businesses are suffering losses so that th
    6·1 answer
  • A company can expect to receive which of the following benefits when it uses a budgeting​ process? A. The budget helps motivate
    14·1 answer
  • Which of the following statements is CORRECT? Group of answer choices Unlimited liability and limited life are two key advantage
    6·1 answer
  • Who has a cc in adopt me i can offer for
    11·2 answers
  • True or false: An EAP only contains information on what happens during an emergency.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!