Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //**********************************************************
- //* Homework 5: Job Application Tracker with Job Seekers.
- //* Author: Ammar Al-Nasseri
- //* Course: CS 3033 Object Oriented Programming
- //**********************************************************
- package com.derka.json;
- import java.util.*;
- public class Applicant extends Employee {
- void JobOpenings(ArrayList<Employee> emp, Scanner console) {
- int choice;
- String jobTitle;
- System.out.println("\n\n-------------------------------------");
- System.out.println("| Choose a Career to Apply for! |");
- System.out.println("|-----------------------------------|");
- System.out.println("| |");
- System.out.println("| Select number and press enter |");
- System.out.println("| to perform operation |");
- System.out.println("|-----------------------------------|");
- System.out.println("| |");
- System.out.println("| 1.) Marketing |");
- System.out.println("| 2.) Engineering |");
- System.out.println("| 3.) Management |");
- System.out.println("| 4.) Accounting |");
- System.out.println("| 5.) Networking |");
- System.out.println("| 6.) Computer Science |");
- System.out.println("| 7.) Exit Menu |");
- System.out.println("| |");
- System.out.println("-------------------------------------");
- System.out.print("Enter your choice : ");
- choice = Integer.parseInt(console.nextLine());
- switch (choice) {
- case 1:
- jobTitle = "Marketing";
- create_new(emp, jobTitle, console);
- break;
- case 2:
- jobTitle = "Engineering";
- create_new(emp, jobTitle, console);
- break;
- case 3:
- jobTitle = "Management";
- create_new(emp, jobTitle, console);
- break;
- case 4:
- jobTitle = "Accounting";
- create_new(emp, jobTitle, console);
- break;
- case 5:
- jobTitle = "Networking";
- create_new(emp, jobTitle, console);
- break;
- case 6:
- jobTitle = "Computer Science";
- create_new(emp, jobTitle, console);
- break;
- case 7:
- break;
- }
- }
- void viewMyApplication(String email, ArrayList<Employee> emp) {
- System.out.println("\n-------------------------------------- Applicant's Information ------------------------------------------------");
- for (int i = 0; i < emp.size(); i++) {
- if ((emp.get(i).getEmail()).equals(email)) {
- if (emp.get(i).getAppID() < 5000) {
- System.out.println("\nJob Title: " + emp.get(i).getJobTitle() + " " + emp.get(i).getFull_part());
- System.out.println("Name: " + emp.get(i).getFirstName() + " " + emp.get(i).getLastName());
- System.out.println("Email: " + emp.get(i).getEmail());
- System.out.println("Phone Number: " + emp.get(i).getPhoneNumber());
- System.out.println("Previous Employer: " + emp.get(i).getCompany() + " Previous job title: " + emp.get(i).getLastJobTitle() + " Years of experience: " + emp.get(i).getExperience());
- System.out.println("U.S. Citizen: " + emp.get(i).getCitizen() + " Native Language: " + emp.get(i).getLangauge());
- System.out.println("Application ID: " + emp.get(i).getAppID());
- }
- }
- }
- System.out.println("\n------------------------------------ Job Seeker Applicant's Information -----------------------------------------");
- for (int i = 0; i < emp.size(); i++) {
- if ((emp.get(i).getEmail()).equals(email)) {
- if (emp.get(i).getAppID() > 5000) {
- System.out.println("\nJob Title: " + emp.get(i).getJobTitle() + " " + emp.get(i).getFull_part());
- System.out.println("Name: " + emp.get(i).getFirstName() + " " + emp.get(i).getLastName());
- System.out.println("Email: " + emp.get(i).getEmail());
- System.out.println("Phone Number: " + emp.get(i).getPhoneNumber());
- System.out.println("Previous Employer: " + emp.get(i).getCompany() + " Previous job title: " + emp.get(i).getLastJobTitle() + " Years of experience: " + emp.get(i).getExperience());
- System.out.println("U.S. Citizen: " + emp.get(i).getCitizen() + " Native Language: " + emp.get(i).getLangauge());
- System.out.println("Application ID: " + emp.get(i).getAppID());
- }
- }
- }
- } // End viewFullApplication Function
- } // End Applicant Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement