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

  Prove that the rsa decryption algorithm

Prove that the RSA decryption algorithm recovers the original message

  Requirement for sound information management

Information governance is a core requirement for sound information management. As an HIM professional, discuss the needs and the implications of information governance as it relates to being able to do your job.

  Determine the structure-dependencies

What tools are available to determine the structure, dependencies, and data integrity of an existing database?

  Prescription drug complained of flulike symptoms

In a clinical? trial, 25 out of 750 patients taking a prescription drug complained of flulike symptoms. Suppose that it is known that 2.6?% of patients taking c

  Development of a project scope

Within this process is the development of a project scope. What importance does scope serve and who would need to agree with it? Example?

  Student lab activity

Given a set of program specifications for a simple business problem that requires the use of a collection of data to solve a business problem, code and test a program that implements arrays that meet the specifications and employ best programming ..

  How many packets of data must tftp keep at a time

In order to be able retransmit lost packets, TFTP must keep a copy of the data it sends. How many packets of data must TFTP keep at a time to implement this retransmission mechanism?

  Aspect of professional communication

You will individually research a topic on some aspect of professional communication. You will then prepare a 1-2 page outline using the standard outline format (shown below) that would be used in a training session. At the end of your outline yo..

  Explain at least one 1 possible effect that multithreading

question 1 describe at least one 1 possible effect that multithreading could have on event-driven programming when you

  Summary of physical tamper-resistant

Summary of physical tamper-resistant devices how to approach this homework question: a. First, make a list of all of the different types of physical tamper-resistant devices and their characteristics.

  What is the frame format of a ttp/c frame on the network

What is the frame format of a TTP/C frame on the network? What are the contents of the header byte? Explain the principle of operation of the TTP/A protocol. Describe the concept of a "round".

  Annual cost of living adjustment cola

Does CPI (Consumer Price Index) affects the annual cost of living adjustment COLA that is provided to the retirees?

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