diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..ab1f416
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Ignored default folder with query files
+/queries/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..1287549
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..f1fc7ef
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/lab-java-standard-input-and-classes.iml b/.idea/lab-java-standard-input-and-classes.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/lab-java-standard-input-and-classes.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..d163847
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..398d0f7
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Tasks/pom.xml b/Tasks/pom.xml
new file mode 100644
index 0000000..331d20e
--- /dev/null
+++ b/Tasks/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.ironhack
+ Tasks
+ 1.0-SNAPSHOT
+
+
+ 17
+ 17
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/Tasks/src/main/java/com/ironhack/Employee.java b/Tasks/src/main/java/com/ironhack/Employee.java
new file mode 100644
index 0000000..8dc06d0
--- /dev/null
+++ b/Tasks/src/main/java/com/ironhack/Employee.java
@@ -0,0 +1,52 @@
+package com.ironhack;
+
+public class Employee {
+ protected String name;
+ protected String email;
+ protected int age;
+ protected double salary;
+
+ public Employee(String name, String email, int age, double salary) {
+ this.name = name;
+ this.email = email;
+ this.age = age;
+ this.salary = salary;
+ }
+ public Employee(String name, String email, int age) {
+ this.name = name;
+ this.email = email;
+ this.age = age;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public double getSalary() {
+ return salary;
+ }
+
+ public void setSalary(double salary) {
+ this.salary = salary;
+ }
+}
diff --git a/Tasks/src/main/java/com/ironhack/Intern.java b/Tasks/src/main/java/com/ironhack/Intern.java
new file mode 100644
index 0000000..45c6bf2
--- /dev/null
+++ b/Tasks/src/main/java/com/ironhack/Intern.java
@@ -0,0 +1,21 @@
+package com.ironhack;
+
+public class Intern extends Employee{
+ private static final double SALARY_LIMIT=20000;
+
+
+ public Intern(String name, String email, int age, double salary) {
+ super(name, email, age);
+ if(salaryRun code, press or
+// click the icon in the gutter.
+public class Main {
+ public static void main(String[] args) throws IOException {
+ Employee[] employees = new Employee[10];
+ employees[0] = new Employee("John Doe", "john.doe@example.com", 30, 60000.0);
+ employees[1] = new Employee("Jane Smith", "jane.smith@example.com", 28, 55000.0);
+ employees[2] = new Employee("Peter Jones", "peter.jones@example.com", 35, 75000.0);
+ employees[3] = new Employee("Mary Williams", "mary.williams@example.com", 42, 80000.0);
+ employees[4] = new Employee("David Brown", "david.brown@example.com", 25, 50000.0);
+ employees[5] = new Employee("Laura Johnson", "laura.johnson@example.com", 31, 62000.0);
+ employees[6] = new Employee("Michael Davis", "michael.davis@example.com", 38, 70000.0);
+ employees[7] = new Employee("Sarah Miller", "sarah.miller@example.com", 29, 58000.0);
+ employees[8] = new Employee("James Wilson", "james.wilson@example.com", 45, 90000.0);
+ employees[9] = new Employee("Karen Moore", "karen.moore@example.com", 33, 65000.0);
+ try (
+ FileWriter writer = new FileWriter("result.txt", false)) {
+ for(Employee employee:employees){
+ writer.write("Name: "+employee.getName()+", email: "+employee.getEmail()+", age"+employee.getAge()+", salary: "+employee.getSalary()+"\n");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Tasks/target/classes/com/ironhack/Employee.class b/Tasks/target/classes/com/ironhack/Employee.class
new file mode 100644
index 0000000..3ddbd73
Binary files /dev/null and b/Tasks/target/classes/com/ironhack/Employee.class differ
diff --git a/Tasks/target/classes/com/ironhack/Intern.class b/Tasks/target/classes/com/ironhack/Intern.class
new file mode 100644
index 0000000..cc4327a
Binary files /dev/null and b/Tasks/target/classes/com/ironhack/Intern.class differ
diff --git a/Tasks/target/classes/com/ironhack/Main.class b/Tasks/target/classes/com/ironhack/Main.class
new file mode 100644
index 0000000..cf9f865
Binary files /dev/null and b/Tasks/target/classes/com/ironhack/Main.class differ
diff --git a/result.txt b/result.txt
new file mode 100644
index 0000000..b6973eb
--- /dev/null
+++ b/result.txt
@@ -0,0 +1,10 @@
+Name: John Doe, email: john.doe@example.com, age30, salary: 60000.0
+Name: Jane Smith, email: jane.smith@example.com, age28, salary: 55000.0
+Name: Peter Jones, email: peter.jones@example.com, age35, salary: 75000.0
+Name: Mary Williams, email: mary.williams@example.com, age42, salary: 80000.0
+Name: David Brown, email: david.brown@example.com, age25, salary: 50000.0
+Name: Laura Johnson, email: laura.johnson@example.com, age31, salary: 62000.0
+Name: Michael Davis, email: michael.davis@example.com, age38, salary: 70000.0
+Name: Sarah Miller, email: sarah.miller@example.com, age29, salary: 58000.0
+Name: James Wilson, email: james.wilson@example.com, age45, salary: 90000.0
+Name: Karen Moore, email: karen.moore@example.com, age33, salary: 65000.0