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 2. Create a module to get input from the software user 3.Create a module to print out the answer. **example of desired format is attatched
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
1.Create a main module. It should declare one local variable and call two other modules
2. Create a module to get input from the software user
3.Create a module to print out the answer.
**example of desired format is attatched
As per the given problem, we have to design a pseudocode that displays the number of points earned which is calculated on the basis of number of books purchased.
If Books Purchased == 0, points earned is 0,
If Books Purchased == 1 points earned is 5,
If Books Purchased == 2, points earned is 15,
If Books Purchased == 3, points earned is 30,
If Books Purchased >= 4, points earned is 60,
Modules required :
1. Main module.
2. Module to take input from user
3. Module to print the answer.
The required pseudo-code is implemented below as required.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images