Question: Write a Java program that can be used to determine the number of bonus coupons a customer receives based on the number of books purchased.


Write a Java program that can be used to determine the number of "bonus coupons" a customer receives based on the number of books purchased. The general outline is: 1. 2. Start by declaring two integer variables, numBooks and numCoupons Ask the user to enter the number of books being purchased. 3. Now let the user enter the number of books being purchased. 4. Assuming the table below shows the number of coupons to be received, modify the following code to produce the correct value. Note that if no books are purchased, no coupons are given. Do not add any additional if/else statements, just replace the "???'s" with numbers that will work.. if (numbooks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
