Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw the corresponding Flow Graph. 1 public double calculate (int amount) { double rushCharge = 0; if (nextday.equals(yes) ) { 6 rushCharge = 14.50;
Draw the corresponding Flow Graph. 1 public double calculate (int amount) { double rushCharge = 0; if (nextday.equals("yes") ) { 6 rushCharge = 14.50; 24 1234567890 234567868 22 1234567890 12345 32 33 34 HEEEEEEEEE22222222223 3 3 3 3 3 10 { 11 12 } 13 14 { 15 16 } 17 18 { 19 20 } 21 { 23 } 25 26 27 28 29 30 31 } double tax = amount * .0725; if (amount >= 1000) shipcharge amount * .06 + rushCharge; else if (amount >= 200) shipcharge amount * .08 +rushCharge; else if (amount >= 100) shipcharge 13.25 +rushCharge; else if (amount >= 50) shipcharge 9.95 rushCharge; else if (amount >= 25) { shipcharge = 7.25 rushCharge; } else { shipcharge = 5.25 rushCharge; 35 } } total = amount tax + shipcharge; return total;B
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started