Program show the number of books that user purchased

Assignment Help Basic Computer Science
Reference no: EM132231435

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-3 books, he/she earns 5 points.

If a customer purchases 4-6 books, he/she earns 10 points.

If a customer purchases 7-8 books, he/she earns 15 points.

If a customer purchases 9 books, he/she earns 20 points.

If a customer purchases 10 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. Your program may run once per user, or may loop to accept multiple users.

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 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: EM132231435

Questions Cloud

Calculate the sample mean and the sample standard deviation : Using the Normal Distribution - Calculate the sample mean and the sample standard deviation for the maximum capacity of sports stadiums (the data)
A tradition of change-demographics and politics : A tradition of change: demographics and politics. What are some of the reasons for the shifting populations into Texas?
Mistakes business leaders make in resource allocation : Which of these are the most potentially detrimental to the organization? Why? How can leaders avoid these mistakes? Support your ideas with relevant scholarly
Determine what ethics will guide your organizational career : 1) What are the ethical challenges that a leader faces? Use the material included in the text.
Program show the number of books that user purchased : 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
Explain the differences between the production : Explain the differences between the production, managerial, and stakeholder views of the firm. Which view is best and why?
Based the average number of broken machines in the system : Based the average number of broken machines in the system and the average time in queue machines wait to be fixed,
What happened with the healthcare system : With Hurricane Katrina, what happened with the healthcare system? How did healthcare systems respond to Hurricane Katrina?
What are the organizational management approaches : What are the organizational management approaches and how do they operate?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find the gradient magnitude and gradient direction

Consider the sub-image shown above. Find the gradient magnitude and gradient direction at the center entry using the following operators.

  Identify and use significant features of android

Identify and use significant features of Android, iOS, and Windows mobile operating systems

  Process centered organization differ from task-centered one

According to Hammer, how does a process centered organization differ from a task-centered one? What are the pros and cons of either approach?

  Would you agree with the materialism philosophy.state reason

Extending this argument, is it possible for artificial intelligence to surpass human intelligence? Substantiate your position with references, length around 500 words.

  Recognize ten different areas where software helps

In spreadsheet, recognize at least 10 different areas where software could help you, like collecting rent, performing tenant background checks, and scheduling building maintenance.

  Application-request for proposal

As you have seen throughout this week, the requirements document is an important part of IT planning, regardless of the strategy you are going to employ. This week, you will create a plan for developing a request for proposal document, which relie..

  Relative risk comes form inside the organisation

Write a report on relative risk that comes form inside organisation as opposed to risk which comes from external sources.

  Create a comparison between two organizations

Create a comparison between two organizations, including the following characteristics: Roles within the organization Culture of the organization Purpose of the organization Political, social, and economic contexts Discuss the similarities and dif..

  Example of weighted directed grap with weight function

Provide an example of weighted directed graph G = (V, E) with weight function ω:E→R and source vertex s such that G satisfies following property.

  Develop an entity-relationship diagram as a conceptual model

For the following data requirements analysis description, develop an Entity-Relationship Diagram as a conceptual model that captures all of the requirements to the fullest extent possible.

  What domains do you work with or are familiar with

Familiar Domains: What domains do you work with or are familiar with?

  Why might you want to choose one over the other

Why might you want to choose one over the other?

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