Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a new method in the class Bill that determines whether the fee is greater

ID: 3615933 • Letter: C

Question

Create a new method in the class Bill that determines whether the fee is greater than $5,000. If the fee is greater than $5,000 then the output statement "You have 30 days to respond" prints out. If the fee is less than $5,000 then the statement "You have 60 days to respond" prints out. Remember, this new method must be written in the Bill class and utilized in the BillingDialog class.  

Explanation / Answer

please rate - thanks import java.util.*; public class untitled {static Scanner in=new Scanner(System.in); public static void main(String []args) {double bill; bill=BillingDialog(); checkamount(bill);} public static double BillingDialog()     {double amount;    System.out.print( "How much is the bill?");    amount=in.nextDouble();    return amount;           }   public static void checkamount(double fee)    {if(fee>5000)          System.out.println("Youhave 30 days to respond");    else          System.out.println("Youhave 60 days to respond");    } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote