subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
You know the right answer?
For this program you will be writing a program that will use if-else or if-elif-else statements. Rea...
Questions
question
Mathematics, 29.05.2020 02:04
question
Mathematics, 29.05.2020 02:04
question
Mathematics, 29.05.2020 02:04
question
Mathematics, 29.05.2020 02:04
question
Mathematics, 29.05.2020 02:04
question
Mathematics, 29.05.2020 02:04
Questions on the website: 13722367