Serendipity Booksellers has a book club that awards points to its customers based on

the number of books purchased each month. The points are awarded as follows:

-If a customer purchases 0 books, 0 points are earned.

-If a customer purchases 1 book, 5 points are earned.

-If a customer purchases 2 books, 15 points are earned.

-If a customer purchases 3 books, 30 points are earned.

-If a customer purchases 4 or more books, 60 points are earned.

Write a program that asks the user to enter the number of books that he or she has

purchased this month and then display the number of points awarded

Answers

Answer 1

Answer:

n_books = int(input('Kindly enter the number of you've purchased this month'))

if n_books = 0 :

points_earned = 0

elif n_books = 1 :

points_earned = 5

elif n_books = 2 :

points_earned = 15

elif n_books = 3 :

points_earned = 30

elif n_books >= 4 :

points_earned = 60

Print('Thanks for your patronage, you now have', points_earned, 'points')

Explanation:

Using python :

n_books prompts the user to enter an integer value for the number of books purchased for the month

The integer is passed to a conditional if statement in other to find the appropriate number of points the user has earned,

After the points have been found then, the number of points is displayed using the print statement.


Related Questions

The mechanical engineer designs and programs the solution according to the engineering requirements.

True
False

Answers

Answer:

The  answer is true I know because I took the trust me RichJ

Explanation:

An engine has a piston with a surface area of 17.31 in2 and can travel 3.44 inches. What is the potential change in volume, displacement (\Delta VΔV) , of the cylinder?

Answers

Answer:

$$\begin{align*}

P(Y-X=m | Y > X) &= \sum_{k} P(Y-X=m, X=k | Y > X) \\ &= \sum_{k} P(Y-X=m | X=k, Y > X) P(X=k | Y > X) \\ &= \sum_{k} P(Y-k=m | Y > k) P(X=k | Y > X).\end{split}$$

Explanation:

\eqalign{

 P(Y-X=m\mid Y\gt X)

   &=\sum_kP(Y-X=m,X=k\mid Y\gt X)\cr

   &=\sum_kP(Y-X=m\mid X=k,Y\gt X)\,P(X=k\mid Y>X)\cr

   &=\sum_kP(Y-k=m\mid Y\gt k)\,P(X=k\mid Y\gt X)\cr

}

P(Y-X=m | Y > X) &= \sum_{k} P(Y-X=m, X=k | Y > X) \\ &= \sum_{k} P(Y-X=m | X=k, Y > X) P(X=k | Y > X) \\ &= \sum_{k} P(Y-k=m | Y > k) P(X=k | Y > X).\end{split}$$



What are the benefits of using an isometric sketch to communicate a design?

Answers

Answer:

The benefits of the frame of reference in question are described in the description segment.

Explanation:

Isometric drawings should include almost all viewpoints of the situation of a probably given significant part as well as design. Whilst using descriptive research, it may be challenging to either get a comprehensive vision of how and why the different views integrate to deliver the desired component.

Stakeholders are people or organizations who do what?
are partners with a vested interest
are landscape workers on the school grounds
fund the project
are part of the school media platform
are part of the school's new Web site

Answers

Answer:

B. fund the project

D. are partners with a vested interest

Explanation:

If you look at the definition of the word stakeholder, these options match the definition which is why I chose B and D

A B D E

are part of the school media platform

fund the project

are part of the school’s new Web site

are partners with a vested interest

Which of the following formulas would you use to calculate power requirements of an electrical load

Answers

What are the following formulas?
hello, I’m going to need to know the following questions in order to answer your question .

PLEASE ANSWEAR FAST!!!
What does it mean if E˂1

Answers

Scientific notation is another way to write a number. In scientific notation, the letter E is used to mean "10 to the power of." For example, 1.314E+1 means 1.314 * 101 which is 13.14 . Scientific notation is merely a format used for input and output.

can i have a answer

best answer gets brainliest

Answers

Answer: the square root of 25 is 5.

3 x 1,000 = 3,000

1,000,000 + 2,934 x 10 = 1,002,934,000

45 + 2,034 + 20 + 78 = 2,177

M a t h

Explain:

(Sorry it’s not all of them)

45 + 2,034 = 2,079 + 20 = 2,099 + 78 = 2,177

The square roots of 25 are √25=5 and −√25=−5 since 52=25 and (−5)2=25 . The principal square root of 25 is √25=5.

1,000 + 1,000 + 1,000 = 3,000 using multiplication makes it faster by saying 3 1,000 times is 3,000.

WHICH OF THIS PLS FAST!!!
What does it mean if E˂1?
a)
demand is perfectly inelastic
b)
price change draws smaller change in demand
c)
demand is more elastic than the price change
d)
demand is unitary elastic

Answers

Answer:

A

Explanation:

Part C
This table lists the power in watts of some common appliances. Sometimes, we use two appliances at the
same time. According to the table, what is the total amount of watts used by a TV connected to a cable
box?

Answers

Answer:

Part C: 308 watts

Add the watts from the TV(150) plus the cable box when on(140) and off but plugged in(18). Then it will give you an answer of 308 watts.

Part D: 185 watts

Add the watts from the TV(150) and the video game system(35) which will give you an answer of 185 watts.

Part E: yes

I say yes to this because when the cable box is off but plugged in it still uses watts(18).

Explanation:

I did the activity! Hope this helped you! you just have to put the number not the explanation! Have a great day and make sure you thank me! :)

Add the watts from the TV(150) plus the cable box when on(140) and off but plugged in(18). Then it will give you an answer of 308 watts.

Part C: 308 watts

A Watt is the unit of electrical power equal to one ampere under the pressure of one volt. One Watt is a small amount of power. Some devices require only a few Watts to operate, and other devices require larger amounts.

What watts mean?

power

A watt (W) is a unit of measurement of power. Watts therefore refer to the power of your device.

Examples: an incandescent lamp has a power of 60 W. your microwave oven has a maximum power of 900 W.

To learn more about A watt, refer

https://brainly.com/question/24156380

#SPJ2

Which is the best description of power? A. the amount of kinetic energy lost during motion
B. a measure of how fast an object can travel
C. the amount of energy transfer during motion
D. a measure of how fast a machine performs work​

Answers

Answer:

D. a measure of how fast a machine performs work​

Explanation:

Power can be defined as the energy required to do work per unit time.

Mathematically, it is given by the formula;

[tex] Power = \frac {Energy}{time} [/tex]

Hence, the best description of power is that, it is a measure of how fast a machine performs work.

This can be calculated by using the mathematical expression below;

[tex] Power = \frac {Work done}{Time} [/tex]

But we know that, [tex] Workdone = force * distance [/tex]

robots are made up of what

Answers

Answer:

Metal

Explanation:

Metal

In addition to bandages and gauze, it's recommended that a first aid kit also contain

Answers

Disinfectant supplies, such as wipes of gel.

Need help fast I been stuck in this for the longest

Answers

Answer:

3rd and 4rth

Explanation:

a geologist studies the earth and both of these have something to do with the earth

You are diving a car out in rural America and suddenly you get a flat tire. you pull off to the side of the road. you check your cell reception and dont have a single bar of signal (your cell phone won't work). you look around and there is no other cars or houses anywhere in sight and you do not remember the last time you saw a passing car or house. you are absolutely alone. the sun is setting and it is just starting to get dark. you get out and jack up the car, loosen the 4 nuts, take off the wheel with the flat tire. you grab the spare from the trunk and slide it onto the axle- you then look around for the 4 nuts and they are no where to he found. you search everywhere and cant find them. its gettint cold and dark. you look at the car, what can you do? all four of the nuts from the wheel have vanished snd are just gone. explain what you can do and why? remember, you cant call anyone because there is no reception, there is no one else on the road and you havent seen anyone in hours, its getting dark and cold, the 4 nuts from the wheel are gone, the car cannot drive safely with only 3 wheels​

Answers

Answer:

Walk to saftey!

Explanation:

What problem is HTTP solving?

Answers

Answer:

HTTP is solving the problem of how to ask for that file. Your computer and that server communicate using a protocol called HTTP.

It's a protocol for computer servers
Other Questions
We should stress again that the Carnot engine does not exist in real life: It is a purely theoretical device, useful for understanding the limitations of heat engines. Real engines never operate on the Carnot cycle; their efficiency is hence lower than that of the Carnot engine. However, no attempts to build a Carnot engine are being made. Why is that Can you please help me with this question please I will give you extra points and the brain thing. show work please do all Which of the following would most likely be included in the book shown?OA AristotleOBSophoclesOC ArchimedesODHerodotus The price of a washing machine was decreased by 20% to 640. What was the price before the decrease? what is 0.5( -16p - 6) = ? Which fraction is closest to the benchmark 1?A. 1/5B. 1/3C. 4/9D. 8/9 All of the following phrases have alliteration EXCEPT: Select one: OGriping griet OFaint cold fear OWalk toward First Street. ONight's dank dew to dry .) The total cost of a pizza and 3 drinks is $19. The price of the pizza is $10 and each drink is thesame price, d.6) Which model represents the situation?10ddd1910d1910-d10-d10-d19101010d19o Can someone please help me it's due by tomorrow. I WILL GIVE YOU BRAINLYEST!! PLSS HELP ME ASAP!! write about how youwould find the Lateral SurfaceArea vs the Total Surface Areaof the Rectangular Prism shown.*DO NOT SOLVE* concentration.a. The video clip explains that you can also look at water as moving to aconcentration of solute molecules.b. Why can it also be viewed this way? Enter the missing number 57+[34+]=[57+34]+105 How did women contribute to the war effort on the battlefields of Europe? 2 feet to 43 inches type the ratio as a simplified fraction help with question plzz Describe a circumstance in which a breeder might choose to use artificial insemination over natural breeding methods. The ratio of the number of text messages sent by Diego to the number of text messages sent by his sister is 3 to 4. Diego sent 18 text messages. How many more text messages did his sister send? The mother's dialect or way of speaking makes the poem morerealisticseriousObOddescriptiveunderstandable What was a consequence of the Crimean War?A.) Russia invaded the Ottoman Empire.B.) Austria gained control of the Turkish Straits.C.) The island of Sicily won independence from Italy.D.) Italy and France made a secret pact to declare war on Austria. Why did Nazi Germany implement the Final Solution? A. Police refused to enforce the Nuremberg Laws. B. Jews were resisting the Nuremberg Laws. C. Elimination of the Jews was not moving quickly enough. D. Nazis feared that Allied forces would find out about the Holocaust. Y varies directly as X , and Y=1.2 when X=1.6.