Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Combinatorial Testing In Cloud Computing

Authors: Wei-Tek Tsai ,Guanqiu Qi

1st Edition

9811044805, 978-9811044809

More Books

Students also viewed these Programming questions