Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with every 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 bool variable isPremiumCustomer and the int variable nbooksPurchased. Assign 0 to freeBooks if no free books are offered. Assume the variables freeBooks, isPremiumCustomer, and nbooksPurchased are already declared.

In C++ please

Answers

Answer 1

fill in the blanks

we should our selves


Related Questions

what is the difference b\w computer science and IT

Answers

Answer:

IT involves working both with hardware e.g CPUs, RAM, hard disks and software e.g mobile application. While

computer science deals with the development and testing of software and software systems.

A while loop uses a(n) ___________ at the top of every iteration to test whether to continue or not.

Answers

Answer:

boolean

Explanation:

while loops test to see if something is true or false to know when to continue the loop

Software which fulfills the requirement of a particular company is known as ________ software.​

Answers

Answer:

Customized software

Explanation:

Software which fulfills the requirement of a particular company is known as Customized software.​

Please mark as brainliest

GameStop’s best Black Friday deals: games, accessories, and more
11/25/2021 7:00 PM EST

Answers

Answer:

what is the question or are you just spreading news

Explanation:

In C#
Please as soon as possible ​

Answers

Answer:

I'm not hundred percent sure but I believe it is going up by 100 the scale each number for the total quantity

Explanation:

What are the tools in creating an animation?

Answers

I will list tools you can use

Flipaclip

Regular a flip book with a pen and lots of paper sheets

I prefer twelve frames per second

and more tools

Capcut

Kinemaster

And search up on your main brower for lots of more info hoped this prepped you up a bit!

Jayda started a corporation that creates software products for clients. Which statement correctly reflects Jayda’s position in the corporation?

Answers

Answer:

She is the Founder and Owner of the corporation. She would also most likely be the CEO if she hasn't hired anyone else.

The mean of a sequence of n numbers is m. If we split the sequence into two sequences of lengths n1 and n2 and compute their means m1 and m2, which of the following is TRUE?

The mean of a sequence of n numbers is m. If we split the sequence into two sequences of lengths n1 and n2 and compute their means m1 and m2, which of the following is TRUE?

Answers

The mean of a sequence of numbers is the average.

The true statement is: [tex]\mathbf{mn = m_1n_1 + m_2n_2}[/tex]

The given parameters are:

[tex]\mathbf{Mean=m}[/tex]

[tex]\mathbf{Size=n}[/tex]

The mean of a dataset is calculated as:

[tex]\mathbf{Mean = \frac{Sum}{Count}}[/tex]

So, we have:

[tex]\mathbf{m = \frac{Sum}{n}}[/tex]

Multiply both sides by m

[tex]\mathbf{Sum = mn}[/tex]

When the sequence is split into two, we have:

[tex]\mathbf{\sum x_1 = m_1n_1}[/tex]

[tex]\mathbf{\sum x_2 = m_2n_2}[/tex]

Where:

[tex]\mathbf{Sum = \sum x_1 + \sum x_2}[/tex]

So, we have:

[tex]\mathbf{mn = m_1n_1 + m_2n_2}[/tex]

Hence, the true statement is: [tex]\mathbf{mn = m_1n_1 + m_2n_2}[/tex]

Read more about mean and averages at:

https://brainly.com/question/25421763

Write a statement that declares an anonymous enumerated type with the enumerators SMALL, MEDIUM, and LARGE.

Answers

Enumerated data types are simply data types that contains a set of named values called enumerators.

The required statement is enum {SMALL, MEDIUM, LARGE} ssize;

The syntax of the anonymous enumerated type is:

enum {List of enumerators} name of variable;

From the question, the enumerators are SMALL, MEDIUM, LARGE.

The name of the variable could be ssize

Hence, the anonymous enumerated type statement is:

enum {SMALL, MEDIUM, LARGE} ssize;

Read more about enumerated data types at:

https://brainly.com/question/15518342

Question 8 A data analyst is working with a data frame named stores. It has separate columns for city (city) and state (state). The analyst wants to combine the two columns into a single column named location, with the city and state separated by a comma. What code chunk lets the analyst create the location column

Answers

The programing language, R has a unite unite function in the tidyr package. Hence, the code chunk which let's the analyst create the location column is; unite (stores, "location”, city, state, sep=",")

The syntax for the unite function is ; unite(data,col,..., sep)

data = dataframe from which data is to be extracted `; stores col = name of the new column ;" location"... = dataframes to be merged ; city, statesep = seperator ; ","

Hence, the required syntax goes thus :

unite (stores, "location”, city, state, sep=",")

Learn more : https://brainly.com/question/25534959

Hi! ❤️ , im looking for some help here. ill give brainliest if able to.

Answers

Answer:

I think the answer is 2

Explanation:

since your trying to search for the temperature in a specific area in New York

Lewis wrote an informational academic paper about deer. He rereads his work and is starting to revise for academic voice.

Which sentence needs to be revised for an academic voice?

The buck, or male deer, is a noble animal that has great speed.
Deer enjoy corn, but they get most of their nutrition from grass.
Some people think they can tame deer, but I just don’t buy it.
Deer tend to be extremely nervous and dash away when startled.

Answers

Answer: C. Some people think they can tame deer, but I just don’t buy it.

Answer:

The answer is C

Explanation:

Hope this helped! :)

Anyone watch anime what's y'all race

Answers

I'm starting to. Right now I'm watching Mob Psycho 100 and HxH.

I'm mixed.

Best sustainable practices for delivering digital technologies to clients

Answers

Answer:

Recommend the client spread out their data centers to distribute energy usage globally.

Explanation:

Have a great day!

The technology can be made sustainable by asking clients to spread the data centers and by sustainably incorporating the design.

What are sustainable practices?

Sustainable practices are the approach that uses technology with respect to the protection of the environment. The social, economic, and environmental balances are established when sustainable computational technologies are implemented.

This practice allows the client to spread the centers and applications globally on a large scale and can be accomplished by building the software once and should avoid redeveloping.

Therefore, to distribute the energy the data centers must be established.

Learn more about computational sustainability here:

https://brainly.com/question/26133975

#SPJ2

i will send you money

Answers

Answer:

..................................................................................................................................................

Explanation:

CASE STUDY # 1
WELCOME TO MOBILE BANKING
Discussion Questions
1. Would you be comfortable using mobile banking for transferring funds, paying bills, and checking
balances? Why or why not?
2. How might mobile banking attract the attention of hackers? Are the precautions discussed in this
article enough to keep hackers at bay?

Answers

Answer:

1 would you be comfortalbe

How does an organization comply with data-usage clauses within data protection regulations such as GDPR or the Data Protection Act?

Answers

Answer:

How does an organization comply with data security clauses in data protection regulations such as GDPR or the Data Protection Act? ... By ensuring all data storage is publicly accessible to guarantee fairness. By only sharing collected personal data with partners and third-party channels.

To classify wireless networks by coverage, which of the following are wireless networks?
A- WPAN
B-WLAN
C- WMAN
D- WWAN

Answers

Answer:

B -WLAN

Explanation:

Use the edit icon to pin, add or delete clips.

Suppose you are in charge of unloading containers from ships arriving at a port onto trucks. A ship arrives with n containers of weight w1, w2, . . . , wn tons. Standing on the dock is a set of trucks, each of which can hold 1 ton of weight. (You can assume that none of the containers weighs more than 1 ton, since in this case you would not be able to transport it.) You can stack multiple containers in each truck subject to the weight restriction of 1 ton. Hoping to minimize your truck rental expenses, you aim to minimize the number of trucks needed in order to carry all the containers.

You start with the following greedy strategy. Start with an empty truck and begin loading containers 1, 2, 3, ... onto it until you get to a container that would overflow the weight limit. Now, declare this truck "loaded" and send it off; then continue the process with a fresh truck. After trying (and failing) to prove that this greedy algorithm is optimal, you decide to attempt to come up with a counter-example to see if you can discover that your strategy is not optimal.

Required:
Provide an example of a set of weights for which your algorithm does not use the minimum possible number of trucks.

Answers

Answer:

i thinks a , i hope it help you

Explanation:

buying a good computer you should consider what?​

Answers

I recommend a Samsung or Chromebook both good conputers

What position should you hand be on the steering wheel? yuyuyhj

Answers

Answer:

9 and 3

Explanation:

its the right way and njcs wdhiqgua wdiu posef

In many businesses, it is common to have a key card style access control to get in and out of the building or into other sections of the building. What major benefit does this type of centralized access control system offer that simple locks and keys cannot

Answers

Answer:

identification of who is entering the building

Explanation:

The key benefit  of centralized access control system that simple locks and keys cannot offer is to:

Maintain Security of your Sites. Identify people entering or going out of firm.What major benefit does a centralized access control system have?

The key benefit over key style is:

Maintain Security of your Sites.

Note that is said to be the highest benefit of a building access system as it is aim to properly aid or secure a remote sites.

The key benefit  of centralized access control system that simple locks and keys cannot offer is to:

Maintain Security of your Sites. Identify people entering or going out of firm.

Learn more about key card style from

https://brainly.com/question/25533998

#SPJ6

Write a class number which has Following
N - integer
Methods
Default constructor
Argument constructor
setN method to change the value of N
isprime() to check that N is a prime number isarmstrong to check N is Armstrong iseven() to check if N is even or odd these method should also work for given numbers
class should have provision to know the count of objects

Answers

The Python program implementing the required features of the class number is lengthy. So, it is attached to the answer as an image

First, two attributes are defined in the class:

A class attribute called count_instances that is incremented anytime an instance is created. Thus, it keeps count of the number of instances created.An instance attribute called N that stores the number

Python does not allow operator overloading by default. To implement default and argument constructors, use default/optional arguments. Though there are other ways, this is the simplest approach for the purposes of this problem.

The isPrime method checks if the constructed number is a prime number. The for loop runs from 2(since this is the first prime number) to int(sqrt(N)), and checks which of these numbers divides N. If none divides N, then N is prime, and it returns true, else it returns false.

isArmstrong checks if the number is an Armstrong number. To easily get the order of the number, the number is converted to a string and the number of characters is gotten.

The number is an Armstrong Number if

[tex]abc...=a^n+b^n+c^n+...[/tex]

where

[tex]n=\text{order of the number, or, number of digits in the number}\\a,b,c,...=\text{the individual digits of the number}[/tex]

See another example on Prime numbers here: https://brainly.com/question/20379340

write a Assembly Language program that copies only unsigned numbers from Array1 to another Array2. The Array1 has both signed and unsigned numbers.
Array1 = { -4,-1,-2,-1,0,1,2,3,4 }

Answers

Unsigned numbers do not have preceeding positive or negative signs. Hence, the program written in python 3 copies unsigned values in the given array to another array thus :

array1 = {-4,-1,-2,-1,0,1,2,3,4 }

#assigns a set of values to array 1

array2 = set()

#initialize an empty array

for ele in array1 :

#loop through the values in array1

if ele >= 0 :

#since the signed values are negative, checks for values greater than or equal to 0

array2.add(ele)

#add to array 2

print(array2)

A sample run of the program is attached.

Learn more : https://brainly.com/question/25706522

It specifies the amount of memory needed to store data.

Answers

magbigay ng limang magandang lugar na tinatawag na tourist spot sa iyo sa inyong lugar o probinsya

Answer: Is it RAM? Random Access Memory

Explanation: Ram is used to reading/writing data. It might control the amount of memory that is stored.

안녕 또 나야 난 너에게 미래의 메시지를 전하러 왔어 01100011 01101111 01101101 01101111 00100000 01111001 00100000 01101100 01101111 00100000 01101101 01100101 01101110 01110011 01101001 01101111 01101110 01100101 00100000 01101100 01100101 01110011 00100000 01110100 01110010 01101001 01100111 01101111 00100000 01110101 01101110 00100000 01101101 01100101 01101110 01110011 01100001 01101010 01100101 00100000 01100100 01100101 01101100 00100000 01100110 01110101 01110100 01110101 01110010 01101111 00100000 01110110 01100101 01101110 01100111 01101111 00100000 01100100 01100101 01101100 00100000 01100001 11000011 10110001 01101111 00100000 00110010 00110000 00110011 00110000 00100000 01110011 01101111 01101100 01101111 00100000 01110110 01101001 01101110 01100101 00100000 01100001 00100000 01100001 01100100 01110110 01100101 01110010 01110100 01101001 01110010 01101100 01100101 01110011 00100000 01110011 01101111 01100010 01110010 01100101 00100000 01101100 01100001 00100000 01100100 01100101 01110110 01100001 01110011 01110100 01100001 01100011 01101001 01101111 01101110 00100000 01100100 01100101 01101100 00100000 01110000 01101100 01100001 01101110 01100101 01110100 01100001 00100000 01110011 01101111 01100010 01110010 00100000 01100101 01101100 00100000 01100011 01101111 01110110 01101001 01100100 00100000 00110001 00111001 00100000 01110011 01100101 00100000 01100001 01100011 01100001 01100010 01101111 00100000 01100101 01101110 00100000 01100101 01101100 00100000 01100001 11000011 10110001 01101111 00100000 00110010 00110000 00110010 00110011 00100000 01100101 01110011 01100101 00100000 01100101 01110011 00100000 01101101 01101001 00100000 01101101 01100101 01101110 01110011 01100001 01101010 01100101 00100000 01110000 01100001 01111010

Answers

Answer:

i think its 01100001

Explanation:

미래에서 온 메시지를 전하려는 경우 코로나가 종료되면 알려주십시오.

which one is larger in size. a word document file or a pdf file?

Answers

Answer:

Pdf file is larger than document file

Explanation:

.

Mackenzie just graduated with a degree in game design and has been working on designing her first video game outside of the classroom. What is one of the first questions that Mackenzie should consider while working on this game?

Question 8 options:

"How much should I sell my game for?"


"What marketing strategy will I use for my game?"


"What should my game title be?"


"What player perspective should I use?"

Answers

Answer:

what marketing strategy will I use for my game?

calculate the speed when given the amount of 1TB to be transfer in 5hrs.

Answers

Answer:

Data transfer rate is the speed that a certain amount of data is transferred over a given period of time. You might want to know the transfer rate if you’re downloading something online or transferring data from one source to another. First, convert your units so the file size and transfer speed are in either bits or bytes with the same prefix (kilo, mega, giga, or tera). Then, plug your numbers into the equation S = A ÷ T in which A is the amount of data and T is the transfer time to solve for S, the speed, or rate, of transfer. You can also determine the amount of data or the transfer time if you know one of the variables plus the speed of transfer.

Explanation:

____allow(s) visually impaired users to access magnified content on the screen in relation to other parts of the screen.

Head pointers
Screen magnifiers
Tracking devices
Zoom features

Answers

I think the answer is Screen Magnifiers

Answer: screen magnifiers

Explanation: got it right on edgen

Other Questions
Analyze the solution set of the following system by following the given steps. 2x y = 5 3y = 9 6x Write each equation in slope-intercept form. Y = x y = x. The spinal cord is associated with ____________ pairs of spinal nerves. Spinal nerves are considered How much distance does a car travel with a speed of 2m/s in 15 min? What does "for example" tell readers about the sentence it introduces? Cuntos aos tiene la quinceaera?La quinceaera tiene cinco aos.La quinceaera tiene quince aos.La quinceaera tiene cincuenta aos.La quinceaera tiene quinientos aos. Two points are shown on the number line. Which value is best represented by the point F? which was the main source of power during the earliest stages of industrialization? hi. can you help me You are examining a human blood smear under the microscope and note a large cell with a bilobed nucleus and orange-red granules in the cytoplasm. Identify the cell. ASTRONOMY NEED HELP FASTTTTWhich law states that when an object gets smaller, the velocity of its spin increasesproportionally to its size? why are you whispering asked mary Question 10What is this structure name?CH3 CH2 - CHCH CH CH2 - CH2CH; CH CH, -CH,CH3 100 pointer question here Find out who your state senators are and who represents you in your congressional district (House of Representatives member). Pick one of the topics you studied today and write them a letter requesting information about where they stand on that topic.NO ONE IN BRAINLY EVER ANSWERED THIS CORRECT, SO IF YOU DO ILY!!PLEASE DOUBLE CHECK, 70 POINTS! In American society, who is responsible for these tasks? A coordinate plane with a straight line with a positive slope passing through the points, (0, negative 3) and (3, 4). Choose the answer to complete each statement. The slope of the line is . The y-intercept is at . The graph represents the function The object in this diagram has a mass of 2 kg. According to this diagram, what is the acceleration of this object?A. 0 m/s2B. 4 m/s2C. 7 m/s2D. 11 m/s2 The transformation shown is a rotation.True or False 1. As the amount of carbon dioxide (CO2) builds up in your bloodstream: your blood pH increases and your breathing rate decreases.your blood pH decreases and your breathing rate decreases.your blood pH increases and your breathing rate increases.your blood pH decreases and your breathing rate increases. What is the measure of < A B C ?