Question: I need help with java homework Problem 1: Book Club Points Serendipity Booksellers has a book club that awards points to its customers based on
I need help with java homework


Problem 1: Book Club 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 follows: If a customer purchases O books, he or she earns 0 points. If a customer purchases 1 book, he or she earns 5 points. 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. Write a program using 'Switch' case statement that asks the user to enter the number of books that he or she has purchased this month and then displays the number of points awarded. Expected Output: How many books did you buy:10 You earn 60 points. How many books did you buy: -7 Invalid input. Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalent. The formula for converting a temperature from Celsius to Fahrenheit is F = * C +32 Where F is the Fahrenheit temperature and C is the Celsius temperature. You program must use a loop to display the table. Expected Output: Celsius Fahrenheit 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00 10.00 11.00 12.00 13.00 14.00 15.00 16.00 17.00 18.00 19.00 20.00 32.00 33.80 35.60 37.40 39.20 41.00 42.80 44.60 46.40 48.20 50.00 51.80 53.60 55.40 57.20 59.00 60.80 62.60 64.40 66.20 68.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
