View the step-by-step solution to:

# Program Instructions: A national retail store has a rewards program for customers who purchase a certain dollar amount on his/her store credit card....

using Scanner and display using JOptionPane
Program Instructions : A national retail store has a rewards program for customers who purchase a certain dollar amount on his/her store credit card. If a customer’s purchase reaches \$2,500 or more, the customer receives a redemption certificate for 1% of that purchase total rounded to the nearest ones position. Code a program that calculates the redemption amount. Prompt 1: Prompts ask the user to enter a value. Please enter your total purchases to-date: Output specification : Shows the final result that is to be printed or displayed. The result in this case is shown in one of two messages. In the first message, the Zs are numbers excluding zeroes (or leading zeroes). The 9s are numbers including zeroes. The final output is double-line advanced from the last prompt. Congratulations, you are getting a redemption certificate for \$ZZZ,ZZ9! OR SORRY! You do not qualify for any rewards at this time! General Instructions: Use JCreator to code the program. You will prompt for input using Scanner and display using JOptionPane. Call the program YourLastNameFirstInitialLE23 . The ifs are to be coded as follows: if(totalPrchToDte >= 2500.00) { redeemCert = totalPrchToDte * .01; message = String.format("Congratulations, you are getting " + "a redemption certificate for \$%,.0f!", redeemCert); } if(totalPrchToDte < 2500.00) { message = "SORRY! You do not qualify for any " + "rewards at this time!"; } Sample Output: Please enter your total purchases to-date: 5150.85 OR Please enter your total purchases to-date: 2499.99

import javax.swing.JOptionPane; public class CalCredit
{ public static void main(String a)
{
try
{
double cp =Double.parseDouble(JOptionPane.showInputDialog(&quot;Enter Credit Purchase&quot;));...

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents