Asks the user to enter their name and the number of books

Assignment Help Python Programming
Reference no: EM132330126

Question

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 0 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.

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

Data for the program:

Mary Smith 5 books

John Franklin 1 book

Stewart Jones 0 books

Marvin Applegate 7 books

Ernestine Miller 8 books

Francis Butterworth 3 books

Arlene Cooper 0 books

Maryanne Fisher 2 books

Andrea Martin 10 books

Larry Andrews 9 books

Reference no: EM132330126

Questions Cloud

Calculate the most appropriate descriptive statistics : Use the data to answer the following questions: Calculate the most appropriate descriptive statistics for Distance and LeadBefore
Display all of the scores entered and the total score : Ask the user in between each score if they want to continue (y/n). Display all of the scores entered and the total score at the end.
What are the major arguments for your view : After reading Terry Mortenson's Article on Creation (access the PDF link below), you must develop answers to the prompts below. Interact with specific details.
What is the frequency density of salaries : ETW1102 - Business statistics - Monash University - What percentage of employees earn more than $40000 per year and Why should frequency density be used rather
Asks the user to enter their name and the number of books : Asks the user to enter their 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.
Create a list that contains the months of the year : Create a list that contains the months of the year? Create a loop to print the month number and name? The response paper should be in APA format.
What are the differences in the if-else and if statements : What are the differences in the if-else and if statements? Why does it make a difference in programming to understand the order of "And", "or".
What is the value of the sample statistic : A private investigator claims that he solves 90% of all cases he takes on. What is the value of the sample statistic (correct to 2 decimal places)
Describe the theory that the video is covering : Please find a video from any source that is shareable and post this in the main discussion. The video should cover a technology adoption theory. A technology.

Reviews

Write a Review

Python Programming Questions & Answers

  Determine the final order of a stack of pancakes

create a Python program called pancakes.py that will determine the final order of a stack of pancakes after a series of flips.(PYTHON 3)

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Build your own quiz use the Python Programming Language

Use the Python Programming Language to build your own quiz. You will use a fill-in-the blank style to create a quiz that can even be used as a study tool

  Write a python script that reads and analyses

Write a Python script that reads and analyses the child mortality data file (WHOSIS_MDG_000003.csv) .

  A python program that contains a main function

Write a PYTHON program that contains a main function and a custom, void function namedshow_larger that takes two random integers as parameters.

  Write a python script for the ice cream ordering system

ICT702 : Write a Python script for the ice cream ordering system.Your program must store the prices of the individual items (cones, scoop flavours and toppings)

  Write multiple functions in a single python file

File Functions - For this assignment, you will write multiple functions in a single Python file names file_functions.py?

  What are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis please explain?

  Implement key exchange using the diffie-hellman algorithm

Implement key exchange using the Diffie-Hellman algorithm, when peer-to-peer connections are made between bots. Achieve con dentiality through encryption of the client-server communications with an appropriate block or stream cipher

  Write an expression that concatenates the string

Write an expression that concatenates the String variable suffix onto the end of the String variable prefix .

  Implement the sieve of eratosthenes

Implement the Sieve of Eratosthenes and use it to find all prime numbers less than or equal to one million. Use the result to prove Goldbach's Conjecture for all even integers between four and one million, inclusive.

  Write an expression whose value is the concatenation

Write an expression whose value is the concatenation of the three str values associated with name1, name2, and name3, separated by commas. So if name1, name2, and name3, were (respectively) "Neville", "Dean", and "Seamus", your expression's value wou..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd