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
Timothy is looking for suppliers for his cheese-making business. He examines a list of suppliers whom he can contact with a busi
elixir [45]

Answer: Supplier selection process

Explanation:

Supplier selection process is the scenario where an individual or a company wants to purchase an item and they contact various vendors who do such business, and asking them for prices, details; generally the requirements for the items they want, they now choose out of the various vendors options, that which matches what they want.

Timothy is in the supplier selection process, where he's evaluating every detail from the vendors based on his request, with an option to request from any of them that matches his request.

7 0
3 years ago
Kangaroo Autos is offering free credit on a new $10,000 car: You pay $1,000 down and then $300 a month for the next 30 months. T
gavmur [86]

Answer:

Kangaroo Auto offers the better deal

If the I go for Kangaroo Autos, then I will save $257.69 in today's term

Explanation:

Here we need to compare the present value of the two options;

Present value is the worth today of an amount or series of amount payable or receivable in the future period.

Where a series of equal amount is receivable or payable in the future it is called an annuity.

One of the payment options includes an annuity. Therefore, we need to work out the present value of the annuity. This is done using the following formula:

Present Value = A ×( 1 - (1+r)^(-n))/r

where A = equal cash flow, r- rate per period, n - no. of periods

A = 300, r- rate per month - 12%/12 = 1% , n= 30

PV = 300 ×(1- (1+0.01)^(-30))/0.01

    = 300 × 25.877

     =7,742.31

Now we can work out he cost of each option  and comapare them in today's Dollar:

Option 1 : Kangaroo Autos

Total cost of option 1 = deposit + PV of annuity

                                  =   1000 + 7,742.31

              cost              = 8,742.31

Option 2: Turtle Motors:

Price =  Car price - Discount

        =   $10,000 - $1000

     cost    =   $9,000

Kangaroo Auto offers a better  deal.

If  I go for Kangaroo Autos, then I will save $257.69 in today's term

4 0
3 years ago
True or False: The term “academic training” refers primarily to formal classes taken in school.
Alla [95]

Answer:

False

Explanation:

4 0
4 years ago
Read 2 more answers
Betty operates a beauty salon as a sole proprietorship. Betty also owns and rents an apartment building. This year Betty had the
nikitadnepr [17]

Answer:

Betty's AGI $33,558

Explanation:

Betty's AGI:

Revenue from salon $88,560

Salaries paid to beauticians ($46,440)

Nail salon supplies ($23,620)

Salon's operating income $18,500

                   +

Interest income $14,665

                   +

Rental revenue from apartment building $35,180

Depreciation on apartment building ($14,400)

Real estate taxes paid on apartment building ($11,980)

Rental income $8,800

                    -

Alimony paid to her husband $7,100

                    -

Self-employment tax on salon income $1,307

                   =

Betty's AGI $33,558

Real estate taxes paid on Betty's house and charitable contributions are itemized deductions (below the line deductions).

6 0
3 years ago
On January 1, Year 1, Ballard company purchased a machine for $28,000. On January 1, Year 2, the company spent $7,000 to improve
timofeeve [1]

Answer:

$23,520

Explanation:

The computation of book value of the machine is shown below:-

Machine cost                           $28,000

Less: Depreciation                    $4,200

($28,000 - $2,800) ÷ 6

Book Value at beginning

of Year 2                                    $23,800

Add: Improvements                   $7,000

Total                                             $54,600

Less: Accumulated

Depreciation for 3 years            $31,080

($54,600 - $2,800) × 3 ÷ 5 years

Book Value Dec 31, Year 4         $23,520

3 0
3 years ago
Other questions:
  • An automated assembly robot that cost $400,000 has a depreciable life of 5 years with a $100,000 salvage value. The MACRS deprec
    13·1 answer
  • When buying component parts, risk does not include:?
    6·1 answer
  • Empire Company is a manufacturer of smartphones. Its controller resigned in October 2017.
    12·1 answer
  • On January 22, Ireland Corporation issued for cash 19,000 shares of no-par common stock at $25. On February 14, Ireland issued a
    7·1 answer
  • gdaniel is working in a job that pays $18,000 per year. He is considering a one-year automobile mechanics course that costs $1,0
    8·1 answer
  • What is division of duties
    8·1 answer
  • Five firms exist in the Liagiba industry. Their respective market shares are 35, 25, 15, 15, and 10 percent. Five firms exist in
    13·1 answer
  • God I I hate my life. AndrewSmith15 are you there plz answer
    10·1 answer
  • If a monopolist's production process has economies of scale and average cost exceeds marginal cost, then _____.
    13·1 answer
  • a company currently producing 10 air conditioners each day has daily total costs of $1,500. producing an additional air conditio
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!