3 Replies - 1259 Views - Last Post: 18 September 2013 - 12:04 PM

#1 streek405  Icon User is offline

  • D.I.C Addict

Reputation: 10
  • View blog
  • Posts: 547
  • Joined: 10-March 13

Should I attach these programs to my resume?

Posted 18 September 2013 - 12:01 AM

I am going to TechFest, a job fair, in 12 hours and I was wondering if including any of these two programs will increase my chances of getting a job or internship, since I do not have much experience. I do realize that they are really small programs, buts these two are the longest programs that I made that were not part of a school project. Please be honest and any constructive criticism is much appreciated.



This program will review three items off of Starbucks menu, assuming the user knows the ingredients

import java.util.Scanner;

public class Starbucks{

	public static void main(String[] args){
	
		Scanner input = new Scanner(System.in);
		String caffeVanilla2 = "milk, coffee, ice, vanilla bean powder, and whipped cream";
		String caramel2 = "milk, coffee, ice, caramel syrup, whipped cream, and caramel sauce";
		String crc2 = "caramel, milk, ice, dark caramel sauce, whipped cream, caramel drizzle, and crunchy sugar";

		//create object
		Frappuccinos frap = new Frappuccinos();
		
		//ask user what they want to study
		System.out.println("Which frappucino would you like to go over: caffe vanilla, caramel, or caramel ribbon crunch? ");
	
		String answer = input.nextLine();
		String cv = "caffe vanilla";
		String c = "caramel";
		String crc = "caramel ribbon crunch";
		
		String a1;
		String a2;
		String a3;
		String a4;
		String a5;
		String a6;
		String a7;
	
		//ask them to enter the ingredients of the drink they want to go over
		
		//match the ingredients for caffe vanilla
		if (answer.equalsIgnoreCase(cv)){
		
			System.out.println("Enter each (5) ingredient, followed by ENTER for " + answer + ":");
			a1 = input.nextLine();
			a2 = input.nextLine();
			a3 = input.nextLine();
			a4 = input.nextLine();
			a5 = input.nextLine();
						
			if (caffeVanilla2.toLowerCase().contains(a1.toLowerCase()) && caffeVanilla2.toLowerCase().contains(a2.toLowerCase()) &&  
				caffeVanilla2.toLowerCase().contains(a3.toLowerCase()) && caffeVanilla2.toLowerCase().contains(a4.toLowerCase()) && 
				caffeVanilla2.toLowerCase().contains(a5.toLowerCase())){
			
				System.out.println("Congrats you got ALL of the ingredients right!");
				frap.yesCaffeVanilla();
			}
			
			else{
				System.out.println("Im sorry. At least one of your inputs are incorrect");

			}
		}
		//match for caramel
		else if (answer.equalsIgnoreCase(c)){
		
			System.out.println("Enter each (6) ingredient, followed by ENTER for " + answer + ":");
			a1 = input.nextLine();
			a2 = input.nextLine();
			a3 = input.nextLine();
			a4 = input.nextLine();
			a5 = input.nextLine();
			a6 = input.nextLine();

			if (caramel2.toLowerCase().contains(a1.toLowerCase()) && caramel2.toLowerCase().contains(a2.toLowerCase()) && 
				caramel2.toLowerCase().contains(a3.toLowerCase()) && caramel2.toLowerCase().contains(a4.toLowerCase()) && 
				caramel2.toLowerCase().contains(a5.toLowerCase()) && caramel2.toLowerCase().contains(a6.toLowerCase())){
				
				System.out.println("Congrats you got ALL of the ingredients right!");
				frap.yesCaramel();
			}
			else{
				System.out.println("Im sorry. At least one of your inputs are incorrect");
				frap.yesCaramel();
			}
		}
		
		//match for ribbon crunch
		else if (answer.equalsIgnoreCase(crc)){
			
			System.out.println("Enter each (7) ingredient, followed by ENTER for " + answer + ":");
			a1 = input.nextLine();
			a2 = input.nextLine();
			a3 = input.nextLine();
			a4 = input.nextLine();
			a5 = input.nextLine();
			a6 = input.nextLine();
			a7 = input.nextLine();

			if (crc2.toLowerCase().contains(a1.toLowerCase()) && crc2.toLowerCase().contains(a2.toLowerCase()) &&
				crc2.toLowerCase().contains(a3.toLowerCase()) &&crc2.toLowerCase().contains(a4.toLowerCase()) &&
				crc2.toLowerCase().contains(a5.toLowerCase()) &&crc2.toLowerCase().contains(a6.toLowerCase()) &&
				crc2.toLowerCase().contains(a7.toLowerCase())){
				
				System.out.println("Congrats you got ALL of the ingredients right!");
				frap.yesCRC();
				}
				
			else{
				System.out.println("Im sorry. At least one of your inputs are incorrect");
				frap.yesCRC();
			}
		}
		
		else{
			System.out.println("Invalid option");
		}
		
		//ask if they would like a custom drink
		System.out.println("Would you like to customize your drink or add a custom drink? Enter yes or no: ");
		String yesOrNo = input.nextLine();
		String y = "yes";
		String n = "no";
		
		// options for custom drinks
		if (yesOrNo.equalsIgnoreCase(y)){
			System.out.println("Ok which of the these frap drinks would you like to customize? " +
			"\ncaffe vanilla\ncaramel\ncaramel ribbon crunch: ");
			String answer2 = input.nextLine();
			
			// match user input with drink
			if (answer2.equalsIgnoreCase(cv)){
				frap.customCV();
			}
			
			else if (answer2.equalsIgnoreCase(c)){
				frap.customC();
			
			}
		
			else if (answer2.equalsIgnoreCase(crc)){
				frap.customCRC();
			}
			
			else {
				System.out.println("Invalid entry");
			}		
		}
		
		else {
			System.out.println("Ok, no custom drinks");
		}
					
			System.out.println("The price of your drink will cost you one of your legs. If you are content \nwith your " + answer +
			" please enter yes to pay, otherwise enter no to cancel your entire order");
			
			String last = input.nextLine();
			
			//confirm order if yes
			if (last.equals(y)){
				System.out.println("I hope you enjoy your overpriced drink. Good day.");
			}
			//cancel if no
			else if (last.equals(n)){
			
				if (answer.equalsIgnoreCase(cv)){
					frap.noCaffeVanilla(); // display cancel caffe vanilla
				}
				
				else if (answer.equalsIgnoreCase(c)){
					frap.noCaramel(); // display cancel caramel
				}
				
				else if (answer.equalsIgnoreCase(crc)){
					frap.noCRC(); // display cancel caramel ribbon
				}
				
			}
			
		
	}
}

class Frappuccinos{

	Scanner input = new Scanner(System.in);
	
	//ingredients
	String caffeVanilla2 = "milk, coffee, ice, vanilla bean powder, whipped cream";
	String caramel2 = "milk, coffee, ice, caramel syrup, whipped cream, and caramel sauce";
	String crc2 = "caramel, milk, ice, dark caramel sauce, whipped cream, caramel drizzle, and crunchy sugar";
	
	//list of fraps
	boolean caffeVanilla = false;
	boolean caramel = false;
	boolean caramelRibbonCrunch = false;
	
	//constructor
	Frappuccinos(){
	}
	
	//make them available with ingredients or not
	public void yesCaffeVanilla(){
		caffeVanilla = true;
		System.out.println("The caffe vanilla contains: " + caffeVanilla2);
	}
	//DO SOMETHING WITH THIS
	public void customCV(){
		caffeVanilla = true;
		System.out.println("So you want a custom caffe vanilla...you hipster! \nWhat would you like in it? Enter each item followed by pressing ENTER," +
		" type in exit when you're done: ");
		
		String exit = "exit";
		String[] array = new String[7];
		
		//end the program if they enter exit
		for (int i = 0; i < array.length; i++){
			array[i] = input.nextLine();	
			//display what they entered
			System.out.println("This drink contains: " + array[i]); 
			if (array[i].equals(exit)){
				break;
			}
		}
			System.out.println("You are finshed with your order");
	}
			
	//use this for a cancellation order, ask if they would like to chnage their mind
	public void noCaffeVanilla(){
		caffeVanilla = false;
		System.out.println("Cancelling your caffe vanilla frap");
	}
	
	public void yesCaramel(){
		caramel = true;
		System.out.println("The ingredients for a caramel frap are: " + caramel2);
	}
	
	public void customC(){
		caramel = true;
		System.out.println("What would you like in your custom caramel frap? Enter each item followed by pressing ENTER, type in exit when you're done: ");
		
		String exit = "exit";
		String[] array = new String[7];
		
		//end the program if they enter exit
		for (int i = 0; i < array.length; i++){
			array[i] = input.nextLine();	
			//display what they entered
			System.out.println("This drink contains: " + array[i]); 
			if (array[i].equals(exit)){
				break;
			}
		}
			System.out.println("You are finshed with your order");		
	}
	
	public void noCaramel(){
		caramel = false;
		System.out.println("Cancelling your caramel frap...");
	}
	
	public void yesCRC(){
		caramelRibbonCrunch = true;
		System.out.println("The ingredients for a caramel ribbon crunch are: " + crc2);
	}
	
	public void customCRC(){
		caramelRibbonCrunch = true;
		System.out.println("What would you like in your caramel ribbon crunch? Enter each item followed by pressing ENTER, type in exit when you're done: ");
		
		String exit = "exit";
		String[] array = new String[7];
		
		//end the program if they enter exit
		for (int i = 0; i < array.length; i++){
			array[i] = input.nextLine();	
			//display what they entered
			System.out.println("This drink contains: " + array[i]); 
			if (array[i].equals(exit)){
				break;
			}
		}
			System.out.println("You are finshed with your order");
	}
	
	public void noCRC(){
		caramelRibbonCrunch = false;
		System.out.println("Cancelling your CRC...");
	}
	
}


This program will teach the user the basic concept of Calculus, derivatives

  import java.util.Scanner;

   public class Calculus{
   
      public static void main(String[] args){
      
         Scanner input = new Scanner(System.in);
      
      // tell the user basic rule of calc
         System.out.println("Whats up. Today I will be teaching you how to do basic Calculus, the derivatives");
      
      // give an example
         System.out.println("Its quite simple, really. Two main rules: " +
            "\n" +
            "\nWhen you derive a constant, by itself, it turns into zero" +
            "\nBut if it is a constant with a variable, like 2X, then you "+
            "\ntake the power of the variable, in this case 1, and multiply it by the constant, in this case 2 " +
            "\nthen at the end you substract the power of the constant by one, so the derivative of 2X, is now 2!");
         System.out.println("Do you understand this? Enter yes or no: ");
         String yesOrNo = input.nextLine();
      
         String y = "yes";
         String n = "no";
      	
         if(yesOrNo.equalsIgnoreCase(y)){
            System.out.println("GOOD!");
         }
         else if(yesOrNo.equalsIgnoreCase(n)){
            System.out.println("That's ok. I will give you another example ^0^");
         }
         else{
            System.out.println("Hey, next time enter yes or no");
         
         }
      // make sure they understand it
         System.out.println("Here is another example: Derive 5X^2 (five X to the 2nd power)");
         System.out.println("Like I said before, you take the power of the variable, 2, and multiple it by the constant infront, 5");
         System.out.println("So now it will be 5 time 2 which is 10. Then substract the orginal power by 1. "+
            "\nIn this case 2 minus 1 is ONE!. So the derivative of 5X^2 is 10X");
      
         System.out.println("Would you like another example?");
         String again = input.nextLine();
      
         if(again.equals(y)){
            System.out.println("Fine, here is a bunch of examples: ");
         
            System.out.print("\nThe derivative of 1 is 0 because a constant by itself is zero" +
               "\nThe derivative of X is 1 because you take the power of X, which is one, multiply it by the constant in front" +
               "\nONE, so 1 times 1 is one, and subtract the power of X by one. X is to the first power, so 1 minus 1 is zero" +
               "\nand if you remember from basic math ANTHING to the 0 power is one!" +
               "\nLast example: the derivative of X^100 is 100X^99" +
               "\nIf you don't understand this, then I have failed you");
         }
         else{
         
            System.out.println("Good now lets see if you can solve this one!");
         
         }
         System.out.println("\n");
         System.out.println("What is the derivative of 10X^3? Make sure your 'X' is CAPITAL: ");
         String answer1 = input.nextLine();
      
         String problem1 = "30X^2";
      
         if(answer1.equals(problem1)){
            System.out.println("\n");
            System.out.println("GOOD JOB!");
         } 
         
         else{
            System.out.println("\n");
            System.out.println("Sorry. You are wrong, the answer is 30X^2" +
               "\nTry the next one");
         }
      
         System.out.println("Derive 25Y^4: ");
         String answer2 = input.nextLine();
      
         String problem2 = "100Y^3";
      	
         if(answer2.equals(problem2)){
            System.out.println("\n");
            System.out.println("AWSOME!!");
         }
         
         else{
            System.out.println("\n");
            System.out.println("Sorry, the answer is 100Y^3" +
               "\nPlease end this program and restart it to review");
         }
      
         System.out.println("Last one, derive piX (pi is 3.14). Round your answer to two decimal places: ");
      
        //  double myPi = Math.PI; // the exact value of PI
       	
         double answer3 = input.nextDouble();
         double pi = 3.14;
      	
         // doubleEquals(myPi, answer3);
      	
         if(answer3 == pi){
         
            System.out.println("\nCongrats! You understand basic Calculus ^_^/>/>");
         }
         
         else{
         
            System.out.println("\nI'm sorry. Remember that pi is a constant");
         }
      
      	// lastly ask the user to make up their own problem
         System.out.println("\nFinal test! Now make up your own problem to derive.\n" +
            "Without thinking, pick a random constant and enter it: ");
         int random1 = input.nextInt();
      	
         System.out.println("Ok. Now enter a variable (make sure the variable is capital): ");
         String random2 = input.next();
      	
         System.out.println("Finally, enter the power of the variable (ex: if its X^5 enter 5): ");	
			int random3 = input.nextInt();
      	
         System.out.println("Ok, so now derive the problem you entered: " +
         random1 + " times " + random2 + " to the power of " + random3 + ": ");
      	
         String finalAnswer = input.next();
      	
         System.out.println("\nYou have entered: " + finalAnswer);
      	
         madeUp(random1, random2, random3);
      				
      }
   	
   	//create a tolerance for the user input
   	// BUT THEY WILL PROBABLY GET THIS ALWAYS WRONG, THE TOLEREANCE IS NOT HIGH ENOUGH, FIX or DELETE!
     //  private static boolean doubleEquals(double d1, double d2){
   //       		
   //          double TOLERANCE = 0.000001; // how many decimal places so its correct
   //          return Math.abs(d1-d2) < TOLERANCE; // return the value if this is true
   //       	
   //       }
   	
   	// create method for made up problem
      private static void madeUp(int num1, String s, int num2){
      
         int neutral = 1; // for the constant or power
         int zero = 0;
      	
      	// if both constant and power is one, return just the variable
         if (num1 == neutral && num2 == neutral){
            System.out.println("\nThe correct answer is: " + s);
         } 
         
         
         // if constant is one, return variable with power, minus one
         else if (num1 == neutral && num2 > neutral){
         
            System.out.println("\nThe correct answer is: " + num2 + " times " +
               s + " to the power of " + (num2 - neutral));
         }
         
         
         // if power is one, just return constant
         else if (num1 > neutral && num2 == neutral){
         	
            System.out.println("\nThe correct answer is: " + num1);			
         }
         
         
         // if they enter a number above one for both, sub the power by one and mult the og power to the constant
         else if (num1 > neutral && num2 > neutral){
         	
         
            System.out.println("\nThe correct answer is: " + (num1*num2) + " times " +
               s + " to the power of " + (num2-neutral));			
         }
         
         
         // if the power is just one, then its zero
         else if (num1 >= neutral && num2 == zero){
         	
            System.out.println("\nThe correct answer is: " + neutral);
         }
         
         // if the constant is zero
         else {
         
            System.out.println("\nThe correct answer is: " + num1);
         }
      	// make the answers print out in 3X^2 instead of writing it out
      	// MAYBE GIVE THEM THEIR TOTAL SCORE AT THE END???
      
      }
   }


*Note* I do will remove most of the useless and unused comments. Also, I do realize that my main method for the 2nd one is too long, but back then I never though of creating separate methods. Should I fix this or could they brush it off?

Is This A Good Question/Topic? 0
  • +

Replies To: Should I attach these programs to my resume?

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5507
  • View blog
  • Posts: 11,808
  • Joined: 02-June 10

Re: Should I attach these programs to my resume?

Posted 18 September 2013 - 06:52 AM

Hate to sound like a bummer, but I don't know many places looking for simple, first semester console read/write skills. We wouldn't use this projects in tutorials, let alone suggest trying to get gainful employment based on them.

There is no OOP design, no GUI, no save/load of values, not even use of arrays:

Quote

      a1 = input.nextLine();
085            a2 = input.nextLine();
086            a3 = input.nextLine();
087            a4 = input.nextLine();
088            a5 = input.nextLine();
089            a6 = input.nextLine();
090            a7 = input.nextLine();



So unless that resume is for a 003 public class Starbucks{ barista, you aren't showing anything here that indicates you are ready to apply for coding positions.

If you stick with it you'll get there. It takes time and lots and lots and lots of projects under your belt before you can build your portfolio. Stick with it and apply yourself and worry about work as a coder when you are out of school.
Was This Post Helpful? 1
  • +
  • -

#3 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Should I attach these programs to my resume?

Posted 18 September 2013 - 07:39 AM

Agreed. You put projects on your resume to differentiate yourself from everyone else. To highlight experience/skills that put you ahead of the competition. In this case however they aren't doing that at all. You put your best work into your portfolio - if the employer sees a couple badly designed writeline/readline programs, that doesn't put you in a good light at all - you are better off with none to be dead honest with you.

Also I think its helpful to point out the differences between a program and a project. What you have yourself there is two small programs - they are not really projects at all. They aren't big enough and don't really solve any particular problem. You need projects in your portfolio, not just small programs.

You are just highlighting that you have read the first chapter of any programming book - something that every other candidate will have. You need to give employers proper evidence that you are going to be a worth while employee - by actually building bigger programs - projects!

If you don't have any experience then get some. There are a ton of project ideas here - pick one and go build a project. You aren't going to get no job or internship unless you have some experience in real projects.
Was This Post Helpful? 1
  • +
  • -

#4 streek405  Icon User is offline

  • D.I.C Addict

Reputation: 10
  • View blog
  • Posts: 547
  • Joined: 10-March 13

Re: Should I attach these programs to my resume?

Posted 18 September 2013 - 12:04 PM

Ok. Thank you guys.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1