Question: 1. Open NetBeans. 2. Select File, New File. 3. Select Java, Empty Java File. Next. 4. For the Class Name enter Showlnterest. Select Finish. 5.


1. Open NetBeans. 2. Select File, New File. 3. Select Java, Empty Java File. Next. 4. For the Class Name enter Showlnterest. Select Finish. 5. Enter the program shown below. There may be errors to fix. 6. Change the interest rate to 2.333. Change balance to 1050; 7. When you are done, select Run, Run File. Program #3 package com.IST242 Apps; public class ShowInterest { public static final int INTEREST_RATE = 2.5; public static void main(String[] arguments) { byte balance = 100.0; double interest; interest = balance * (INTEREST_RATE/100.0); System.out.println("On a balance of $ + balance"); System.out.println("you will earn interest of $ + interest"); System.out.println("All in just one short year."); } } us Output - IST240Apps (run) PiePanel.java x PieFrame.java H run: On a balance of $100.0 you will earn interest of $2.5 All in just one short year. BUILD SUCCESSFUL (total time: 1 second)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
