Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased every month, The points are awarded as follows  1.If a customer purchases 0 books, he or she earns points 0 If a customer purchases 1 books, he or she earns points 5 If a customer purchases 2 books, he or she earns 15 points If a customer purchases 3 books, he or she earns 30 points If a customer purchases 4 or more books he or she earns 60 points   Design a program using pseudocode that asks the user to enter the number of books that he or she has purchased this month and displays the number of points awarded .

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased every month, The points are awarded as follows 

1.If a customer purchases 0 books, he or she earns points 0

If a customer purchases 1 books, he or she earns points 5

If a customer purchases 2 books, he or she earns 15 points

If a customer purchases 3 books, he or she earns 30 points

If a customer purchases 4 or more books he or she earns 60 points

 

Design a program using pseudocode that asks the user to enter the number of books that he or she has purchased this month and displays the number of points awarded .

 

 Here are some necessary parameters to follow to help solve the problem. Please write line numbers before each line of the algorithm, include blank numbered lines between modules and write comments

  1. Create a main module. It should declare one local variable and call two other modules 

 

  1. Create a module to get input from the software user 

 

  1. Create a module to print out the answer. 

 

Use the following example format when structuring the pseduocode. Unless noted with **

Module Main ()

//Declare a varaiable for the

//number of cups needed

Declare Ral cupsNeeded

//Display An intro Message

Call showIntro()

//Get the number of cups

Call getCups(cupsNeeded)

End Module

 

Module getCups(Real Ref cups)

Display " Enter the amount of cups"

Input cups

End Module

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY