Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON For this program you will be writing a program that will use if-else or if-elif-else statements. Read-It-All bookstore has a book sales club where

PYTHON image text in transcribed
image text in transcribed
For this program you will be writing a program that will use if-else or if-elif-else statements. Read-It-All bookstore has a book sales club where customers can earn reward points that can be used for their next purchase. If a customer purchases O books, he/she earns 0 points. If a customer purchases 1-2 books, he/she earns 5 points. If a customer purchases 3-4 books, he/she earns 10 points. If a customer purchases 5-6 books, he/she earns 15 points. If a customer purchases 7-8 books, he/she earns 20 points. If a customer purchases 9 or more books, he/she earns 25 points. Write a program that asks the user to enter their name (First and last name), and the number of books that he or she has purchased this month and displays their name and the number of points they have earned for the month. REMEMBER to put your name on the lab with comments, and write comments in the program to tell what the program is doing. Data for the program: Mary Smith 5 books John Franklin 1 book Stewart Jones O books Marvin Applegate 7 books Ernestine Miller 8 books Francis Butterworth 3 books Arlene Cooper O books Maryanne Fisher 2 books Andrea Martin 10 books Larry Andrews I 9 books

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 11th International Symposium Sstd 2009 Aalborg Denmark July 8 10 2009 Proceedings Lncs 5644

Authors: Nikos Mamoulis ,Thomas Seidl ,Kristian Torp ,Ira Assent

2009th Edition

3642029817, 978-3642029813

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago