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
Which of the following is NOT a requirement for becoming a police officer?
My name is Ann [436]
All of these answers are correct under a certain circumstance. The only one with the 'its a matter of previous records' is D) Graduation from a police training program. I am not 100% sure this is correct, but it's the one thing that some police forces don't require.
8 0
3 years ago
Read 2 more answers
Brief, Inc., had a receivable from a foreign customer that is payable in the customer’s local currency. On December 31,2017, Bri
Pachacha [2.7K]

Answer:

The Foreign exchange gain is $10,000.

Explanation:

The amount of gain that should be reported as the foreign exchange loss is the excess of dollar equivalent over reported local currency units (LUCs), so the Foreign exchange gain is calculated as follows:

Foreign exchange gain = dollar equivalent - local currency units

                                       = $120,000 - $110,000

                                       = $10,000

Therefore, The Foreign exchange gain is $10,000.

6 0
3 years ago
Simone started the meeting at BCD Co. by focusing the attendees on the company's current status. "We have a good product mix," s
WINSTONCH [101]

Answer:

Market development

Explanation:

Market development can be described as a marketing strategy in which new market segments are identified and developed for current products of a company.

The focus of a market development strategy are the existing customers and new customers in the targeted segments that are not currently buying the products of the company.

Market development is therefore a marketing strategy that is employed when a company wants to expand its total market by making effort to promote its current product to new consumers or a new geographical area.

From the question, the statement that  "To continue to grow, we need to target more segments" by Simone indicates that the strategic path Simone is pursuing is <u>market development</u>.

6 0
3 years ago
Which of the following practices should be discouraged during the problem-solving process?
7nadin3 [17]
The answer is D

the reason why:
4 0
3 years ago
Read 2 more answers
________differentiation is a business strategy whereby firms attempt to gain a competitive advantage by increasing the perceived
Andreas93 [3]

Answer:

A) Product Differentiation

Explanation:

Product differentiation is referred as a strategy which companies or firms use to showcase the abilities which their products have and the competing product does not have. Some go as far as displaying an added advantage which their products have. Forms which this strategy can take may be through price of the product, reliability of the product or location of the product.

8 0
3 years ago
Other questions:
  • C. calculate the dollar value of us bonds held by the chinese government. explain how you determined your answer. identify the r
    10·2 answers
  • Dita takes out a student loan from Everloan Bank. When she fails to make the scheduled payments for six months, Everloan advises
    14·1 answer
  • All of the following are fees typically charged by credit card companies EXCEPT:
    5·2 answers
  • Which of the following is a true statement about closing the books of a corporation?A)Expenses are closed to the Expense Summary
    7·2 answers
  • Since engineers are ethically obligated to act for each employer or client as faithful agents or trustees they are expected to c
    13·1 answer
  • Proceeds of debt issued for the construction or acquisition of capital assets are recognized by the capital projects fund as "ot
    13·1 answer
  • Assume an organization's cost of capital is 10% and Division X has operating income of $3 million and uses $20 million of capita
    8·1 answer
  • What could have caused the aggregate demand curve to shift to the right from AD1 to AD2 an increase in exports an increase in im
    15·1 answer
  • On January 1, Year 1, Michael sold a property with a remaining useful life of 20 years to Wei Co. for $800,000. On the same date
    8·1 answer
  • Reamer Corporation uses a predetermined overhead rate based on machine-hours to apply manufacturing overhead to jobs. The Corpor
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!