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, 22.06.2019 00:40
Reading characters and strings from the keyboard: consider the following c++ program 1. #include 2. #include 3. using namespace std; 4. mystring1 5. 6. int main() 7. { 8. 9. string mystring1, mystring2; mychar1 10. 11. 12. char mychar1, mychar2; 13. 14. cout< < "enter a string: "; mychar2 15. 16. cin> > mystring1; // 17. cin.get(mychar1); 18. cin> > mychar2; 19. getline(cin,mystring2); mystring2 20. 21. 22. cout<
Answers: 1
question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
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
Advanced Placement (AP), 22.02.2021 05:10
question
Physics, 22.02.2021 05:10
question
Social Studies, 22.02.2021 05:10
question
Computers and Technology, 22.02.2021 05:10
Questions on the website: 13722363