diff --git a/Lab4_1/PDFs/Worksheet Lab 4-1-1.docx b/Lab4_1/PDFs/Worksheet Lab 4-1-1.docx new file mode 100644 index 0000000..327bd31 Binary files /dev/null and b/Lab4_1/PDFs/Worksheet Lab 4-1-1.docx differ diff --git a/Lab4_1/PDFs/lab4-1.pdf b/Lab4_1/PDFs/lab4-1.pdf new file mode 100644 index 0000000..4646fe6 Binary files /dev/null and b/Lab4_1/PDFs/lab4-1.pdf differ diff --git a/Lab4_1/PDFs/worksheet lab4-1.pdf b/Lab4_1/PDFs/worksheet lab4-1.pdf new file mode 100644 index 0000000..e4a87c5 Binary files /dev/null and b/Lab4_1/PDFs/worksheet lab4-1.pdf differ diff --git a/Lab4_1/target/classes/.netbeans_automatic_build b/Lab4_1/target/classes/.netbeans_automatic_build deleted file mode 100644 index e69de29..0000000 diff --git a/Lab4_1/target/test-classes/.netbeans_automatic_build b/Lab4_1/target/test-classes/.netbeans_automatic_build deleted file mode 100644 index e69de29..0000000 diff --git a/Lab3CalebFontenot/target/classes/.netbeans_automatic_build b/MP1_CalebFontenot/target/classes/.netbeans_automatic_build similarity index 100% rename from Lab3CalebFontenot/target/classes/.netbeans_automatic_build rename to MP1_CalebFontenot/target/classes/.netbeans_automatic_build diff --git a/Lab3CalebFontenot/target/test-classes/.netbeans_automatic_build b/MP1_CalebFontenot/target/test-classes/.netbeans_automatic_build similarity index 100% rename from Lab3CalebFontenot/target/test-classes/.netbeans_automatic_build rename to MP1_CalebFontenot/target/test-classes/.netbeans_automatic_build diff --git a/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug1.java b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug1.java new file mode 100644 index 0000000..f6ab84d --- /dev/null +++ b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug1.java @@ -0,0 +1,18 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.calebfontenot.lab4_calebfontenot; + +/** + * + * @author caleb + */ +public class Debug1 { + public static void main(String[] args) + { + int i = 1; + int j = i * i * i; + System.out.println( j ); + } +} diff --git a/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug2.java b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug2.java new file mode 100644 index 0000000..b728b33 --- /dev/null +++ b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug2.java @@ -0,0 +1,19 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.calebfontenot.lab4_calebfontenot; + +/** + * + * @author caleb + */ +public class Debug2 { + public static void main(String[] args) + { + + int i = 9; + int j = (int)((5.0 / 6) * (i * 4)); + System.out.println(j); + } +} diff --git a/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug3.java b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug3.java new file mode 100644 index 0000000..54c5615 --- /dev/null +++ b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug3.java @@ -0,0 +1,16 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.calebfontenot.lab4_calebfontenot; + +/** + * + * @author caleb + */ +public class Debug3 { + public static void main(String[] args) + { + System.out.println((long)2147483647 + 1); + } +} diff --git a/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug5.java b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug5.java new file mode 100644 index 0000000..72cf943 --- /dev/null +++ b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/Debug5.java @@ -0,0 +1,16 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.calebfontenot.lab4_calebfontenot; + +/** + * + * @author caleb + */ +public class Debug5 { + public static void main(String[] args) + { + System.out.println("1 + 2 is "+ (1 + 2)); + } +} diff --git a/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/payroll.java b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/payroll.java new file mode 100644 index 0000000..07df5b2 --- /dev/null +++ b/lab4_CalebFontenot/src/main/java/com/calebfontenot/lab4_calebfontenot/payroll.java @@ -0,0 +1,46 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.calebfontenot.lab4_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class payroll { + + public static void main(String[] args) + { + // Create Scanner + Scanner input = new Scanner(System.in); + + // Define vars + String employeeName; + double hoursWorked; + double hourlyPayRate; + double taxWithholdingRate; + + // Prompt for input + System.out.print("Enter employee's name: "); + employeeName = input.next(); + System.out.print("Enter the number of hours worked in a week: "); + hoursWorked = input.nextDouble(); + System.out.print("Enter the hourly pay rate: "); + hourlyPayRate = input.nextDouble(); + System.out.println("Enter the federal tax witholding rate: "); + taxWithholdingRate = input.nextDouble(); + + // Calculate + + + + // Print output + System.out.println("Employee Name: "+employeeName); + System.out.println("Hours Worked: "+hoursWorked); + System.out.println("Pay Rate:"+ hourlyPayRate); + + } +}