Question: HELP This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments for your pseudo - code and
HELP This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments for your pseudocode and Java program as necessary.
Your solution must include these components:
Pseudocode
Flowchart
Program Coded
Program Output Design a program that
Asks the user to enter the number of books that they have purchased this month.
Displays the number of points awarded.
If the user enters a value less than it will display an error message and will not display any points.
Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each
month. The points are awarded, as shown below. If the customer purchases:
books, they earn points
books, they earn points
books, they earn points
books, they earn points
or more books, they earn points.
Your program should contain the following:
Module main. Asks the user how many books were purchased. Passes the number of books purchased to pointsEarned.
Module pointsEarned. Uses a decision statement to determine the number of points earned based on the number of
books purchased.
Expected Output
How many books did you purchase?
You earned points.
hELP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
