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 Wilmoths plan to purchase a house but want to determine the after-tax cost of financing its purchase. Given their projected
iVinArrow [24]

Answer:

the annual after-tax cost of financing the purchase of the home is $23,638.40

Explanation:

The computation of the annual after-tax cost of financing the purchase of the home is shown below:

= Installment amount - tax saving

= $33,200 - ($29,880 × 32%)

= $33,200 - $9,561.60

= $23,638.4

hence, the annual after-tax cost of financing the purchase of the home is $23,638.40

We simply applied the above formula

6 0
3 years ago
May 3 Allied made its first and only purchase of inventory for the period on May 3 for 3,000 units at a price of $9 cash per uni
Airida [17]

Answer:

Explanation:

May 3

Dr merchandise inventory 27,000

   Cr Cash 27,000

May 5

Dr Accounts receivable 19,500

    Cr Sales 19,500

May 5

Dr COGS 13,500

     Cr Merchandise inventory 13,500

May 7

Dr Sales returns and allowances 1,950

     Cr Accounts receivable 1950

Dr Merchandise inventory 1350

     Cr COGS 1350

May 8

Dr Sales returns and allowances 750

     Cr Accounts receivable 750

May 15

Dr Cash 16464

Dr Sales discount 336

    Cr Account receivable 16800

19500-1950-750 = 16800

16800*2% = 336

7 0
3 years ago
Delayed product delivery is less of an issue when compared to delivering a faulty product, which can potentially cause harm. Thi
iogann1982 [59]

Answer:

A) high magnitude of consequences.

Explanation:

Delayed product delivery is less of an issue when compared to delivering a faulty product, which can potentially cause harm. This is because delivering a faulty product has a high magnitude of consequences.

The customer is the king in the market, the company can not afford to lose reputation by a delivery faulty product. Especially in the era of social media, these mistakes can cause loss of market share and can potentially damage the credibility of the company´s product, which could take lot of time to rebuild. It may also affect other product of the company to lose reputation.

3 0
2 years ago
Minerals are structurally simple, inorganic substances that exist as groups of one or more of the same atoms. In chemistry, what
olga_2 [115]

Answer:

The substance does not contain carbon .

Explanation:

Usually, an inorganic substance is a type of chemical substance that loses bonds with carbon-hydrogen, that is, a product that is not biological.

  • The difference, though, is not defined and accepted, and experts have varying views on the matter.
  • An inorganic compound, any material which generally combines two or more chemical compounds other than carbon, almost always in clear and obvious percentages.

5 0
3 years ago
Read 2 more answers
Natalia has just finished her law degree, but as she starts her job search, she realizes that there many lawyers practicing in h
Len [333]
That means that she is going to have to work harder to be the best lawyer in the area, or move to an area with fewer lawyers
5 0
3 years ago
Other questions:
  • You are opening up a brand new retail strip mall. You presently have more potential retail outlets wanting to locate in your mal
    6·1 answer
  • In 1776, an economics book titled was published to promote the concept of free enterprise.
    6·2 answers
  • Your assistant wants to use secondary data exclusively for the current marketing research project. You advise him that the use o
    6·1 answer
  • 1. Which of the following increases when the Fed makes open-market sales?
    6·1 answer
  • A method of identifying the legal description of a property is known as what...? Lot and Block Lot Number ACRIS Property Descrip
    10·1 answer
  • Potomac LLC purchased an automobile for $31,200 on August 5, 2020. What is Potomac's depreciation deduction for 2020
    7·1 answer
  • Rising of inflation rate is under which PESTLE element​
    6·1 answer
  • Your company’s human resource manager is away from the office serving in the National Guard, and you have four open positions to
    10·1 answer
  • What was the impact of the entry of the united states into world war one Germany faced a greater number of allied troops as more
    8·1 answer
  • Chris is about to give a speech on social media marketing to a room of professional marketers. How can he enhance his credibilit
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!