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 pseudo-code and Java program as necessary.
Your solution must include these components:
Pseudo-code
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
1-2 books, they earn 10 points
3-4 books, they earn 2 points
5 books, they earn 30 points
6 or more books, they earn 100 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? 5
You earned 30 points.
hELP
 HELP This exercise requires designing a program which solves the problem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!