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
Recently, U.S. dairies, struggling to increase milk sales, tried to change the way adults thought about chocolate milk. The dair
Blizzard [7]

Answer:

The correct answer is C

Explanation:

Repositioning is states as altering or changing the position of the product in the customer minds as relative to the offerings of the product. It is very difficult as well as subtle procedure as the brand or the product needs or require to change the market understanding of the product.

In this case, the dairies would like to reposition the chocolate milk in the minds of the adult customers as they are trying to change the way adults think of chocolate milk.

7 0
3 years ago
Carley Company purchases a new delivery truck for $45,000. The sales taxes are $3,000. The logo of the company is painted on the
disa [49]

Answer:

$49,420

Explanation:

5 0
3 years ago
The city fire department offers its services to any individual within its city limits, so even paul, who is driving through the
Sholpan [36]
I would say that the fire department is an example of an organization with universal coverage something like pensions and medicare pthat are provided to all citizens of a country regardless of their income and so is an equitable system. Consequently then I would say that the fire department is an example of a commonwealth organization.
4 0
3 years ago
Read 2 more answers
rhonda and jade both consider themselves to be african-american, although rhonda has much darker skin and hair than jade. when r
Neko [114]

As Rhonda has much darker skin than Jade, which contributed to why she was told there were no vacancies, then, this type of discrimination based on a color discrimination.

<h3>What is a discrimination?</h3>

It refers to an unfair treatment of people usually because of race sex or religion. It is also an unjust or prejudicial treatment of different categories of people based on the grounds of race, age, gender, disability, height etc.

However, the color discrimination involves treating someone unfavorably because of their skin color complexion. Therefore, as she was told there were no vacancies, then, this type of discrimination based on a color discrimination.

Read more about discrimination

brainly.com/question/4384645

#SPJ1

7 0
2 years ago
10) You are faced with the following alternative choices on a Friday night: Choice A: Go to a concert, which costs $30. Choice B
pickupchik [31]

D) Missing your friend's party plus not studying economics at the library.

4 0
3 years ago
Other questions:
  • 3. A large hotel wants to relocate some of its parking area. Your company, ABC Contractors, would submit a ___
    12·2 answers
  • On January 2, 2020, Concord Corporation began construction of a new citrus processing plant. The automated plant was finished an
    7·1 answer
  • The management software for your sound card has just downloaded and installed the latest driver for your sound card. After a reb
    5·1 answer
  • I need these answers to these
    13·2 answers
  • A poultry farmer is debating whether to acquire Rhode Island Reds or Buff Orpingtons to lay the eggs he wants to sell. The fixed
    11·1 answer
  • The law of comparative advantage indicates that if a group of individuals wants to maximize their joint output, then each good s
    9·1 answer
  • Kirsty is going to open a jewellery business. which of the following production methods should she use job , batch or flow produ
    10·1 answer
  • Suppose the price elasticity of supply for cheese is 0.6 in the short run and 1.4 in the long run. If an increase in the demand
    15·1 answer
  • A(n) _____ is a problem-solving strategy that involves following a specific rule, procedure, or method that inevitably produces
    8·1 answer
  • Solution to retain strong relationship between producers and consumers in tanzania
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!