Question: JUST SHOW THE P-CODE Problem: Write a Banking Program using If-Else where a customer enters a number of checks and a service fee is applied.

JUST SHOW THE P-CODE

Problem: Write a Banking Program using If-Else where a customer enters a number of checks and a service fee is applied. Note: Some parameters to use: if the number of checks is under or equal to 20 then multiple the number of checks by the Level 1 fee if the number of checks is under or equal to 40 then multiple the number of checks by the Level 2 fee if the number of checks is under or equal to 60 then multiple the number of checks by the Level 3 fee if the number of checks is under or equal to 80 then multiple the number of checks by the Level 4 fee Fees: final double BASE_FEE = 10.0; (This can be optional) final double LEVEL_1_FEE = 0.1; final double LEVEL_2_FEE = 0.08; final double LEVEL_3_FEE = 0.06; final double LEVEL_4_FEE = 0.04; Here are the steps (basic algorithhm) to use: // Create a Scanner object for keybord input. // Get the number of checks written. // The total fee starts as the base fee. // Then, we add the appropriate per-check fees via if-else construct // Display the total bank fees. System.out.printf("The total fees are $%.2f ", totalFee);

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 Programming Questions!