Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- /**
- * Write a description of class start here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class start
- {
- // instance variables - replace the example below with your own
- private int x;
- ceo bonus = new ceo();
- VpofBusinessDevelopment bonus1 = new VpofBusinessDevelopment();
- DirectorofTechnology bonus4 = new DirectorofTechnology();
- PresidentofConsumerProduct bonus3 = new PresidentofConsumerProduct();
- VpofGovernmentProducts bonus2 = new VpofGovernmentProducts();
- /**
- * Constructor for objects of class start
- */
- public start()
- {
- }
- public void whatisthebusiness()
- {
- Scanner whatbus = new Scanner(System.in);
- System.out.println("What is their position");
- System.out.println("Type /help for the options");
- String thebus = whatbus.nextLine();
- if(thebus.equalsIgnoreCase("/help")){
- System.out.println("CEO");
- System.out.println("Vp of Business Development");
- System.out.println("Director of Technology");
- System.out.println("President of Consumer Products");
- System.out.println("Vp of Government Relations");
- System.out.println("Would you like to input your position now?");
- String gethelped = whatbus.nextLine();
- if(gethelped.equalsIgnoreCase("yes")){
- whatisthebusiness();
- }
- else if(gethelped.equalsIgnoreCase("no")){
- System.out.println("");
- }
- else{
- System.out.println("ummm sorry i dont understand chai-ness");
- }
- }
- else if(thebus.equalsIgnoreCase("CEO")){
- System.out.println("Please Fill out the question below");
- bonus.findbonus();
- }
- else if(thebus.equalsIgnoreCase("VP of Business Development")){
- System.out.println("Please Fill out the question below");
- bonus1.findbonus();
- }
- else if(thebus.equalsIgnoreCase("VP of Government Relations")){
- System.out.println("Please Fill out the question below");
- bonus2.findbonus();
- }
- else if(thebus.equalsIgnoreCase("President of Consumer Products")){
- System.out.println("Please Fill out the question below");
- bonus3.findbonus();
- }
- else if(thebus.equalsIgnoreCase("Director of Technology")){
- System.out.println("Please Fill out the question below");
- bonus4.findbonus();
- }
- else{
- System.out.println("Sorry, I didnt get that. Would you like to try again ");
- String gethelped1 = whatbus.nextLine();
- if(gethelped1.equalsIgnoreCase("yes")){
- whatisthebusiness();
- }
- else if(gethelped1.equalsIgnoreCase("no")){
- System.out.println("ayte bai");
- }
- else{
- System.out.println("ummm sorry i dont understand chai-nesss");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement