Question: Question: Write the Java program for the given pseudocode. Using exactly 1 integer constant, 3 integer variables, and 1 Scanner variable make sure to fulfill

Question: Write the Java program for the given pseudocode. Using exactly 1 integer constant, 3 integer variables, and 1 Scanner variable make sure to fulfill the following points: 1. Declare 1 constant integer called COST and set it to 25000 2. Declare 1 integer variable called airmiles. 3. Declare 1 integer variable called flights. 4. Declare 1 integer variable called balance. 5. Declare 1 Scanner variable that will record keyboard inputs. 6. Prompt the user through the console for an integer value for the number of air miles, and store the user's inputs in the variables airmiles and discount (use the same format and wording as the sample figure below). 7. Record the number of flights the user can redeem in the variable as the result of airmiles / COST. 8. Record the balance of the user's airmiles in the variable as the results of airmiles % COST. 9. Output in the console a blank line followed by the message You can redeem
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
