Question: objective To type a simple Java program, execute (run) the program for some particular values, observe the output and then modify the program PROJECT DESCRIPTION




objective To type a simple Java program, execute (run) the program for some particular values, observe the output and then modify the program PROJECT DESCRIPTION Type, compile and run the basic Java program that is shown in Figure 1, which follows Then compile and run your program, observe the output then modify the program Information About This Project For this project we will create a simple invoice that allows for user input and provides for some calculations and the displaying of the invoice total amount to be billed Steps To Complete This Project Open NetBeans or Eclipse Open NetBeans or Eclipse and create a Java project with the following details STEP 1 For Project Name include: Invoices For the Main Class include: Invoices In your Code window, shown below, copy in the program code shown in Figure 1 below, in the appropriate places, except substitute your own name in place of Sammy Student. Figure 1 Source Code for the Invoices Program /I Sammy Student import java.util.*; public class Invoices public static void main(String args[l) // the variables int invNum; int numItems 0; double itemPrice 08, shipCharge : 08, totAmt 6.0; double discount 0.02, subTotal 6.0; String invDate "; boolean check false: Scanner sc new Scanner (System.in); /I obtain today's date Date datenew Date); // display time and date using toString() System.out.println (date.toString()); // the program header System.outprintln(" Invoice Processing ]"); ystem.out.println("Today's Date is: "date "In")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
