Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DrMacintosh

Member
  • Content Count

    10,252
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About DrMacintosh

Contact Methods

  • Discord
    DrMacintosh#5151
  • Heatware
    Would rather use eBay
  • Reddit
    u/DrMacintosh01
  • Star Citizen
    I think this game is a scam
  • Steam
    DrMacintosh

Profile Information

  • Gender
    Male
  • Location
    The Great State of California
  • Interests
    Star Trek, KanColle, Apple, PCs, World of Warships
  • Occupation
    Student

System

  • CPU
    R5 2600
  • Motherboard
    ASRock B450M Pro4
  • RAM
    Crucial Ballistix Sport 8GB (2 x 4GB)
  • GPU
    Sapphire Nitro+ RX 580 4GB
  • Case
    Apple PowerMac G5
  • Storage
    480GB PNY CS1311 SSD, WD 2TB Caviar Green
  • PSU
    Corsair CX 600M 80+ Bronze
  • Display(s)
    Dell UZ2215H 21.5" 1080p, ViewSonic VX2450wm-LED 23.6" 1080p, Samsung SyncMaster 940BX 19" 1024p
  • Cooling
    Wraith Prism
  • Keyboard
    Logitech G610 Orion Cherry MX Brown
  • Mouse
    Logitec G303
  • Sound
    Audio Techinca ATH-M50x
  • Operating System
    Windows 10
  • PCPartPicker URL

Recent Profile Visitors

79,903 profile views

Single Status Update

See all updates by DrMacintosh

  1. My Java class has these labs due on Saturdays and man I can envision so many people failing this course if they aren't super dedicated. Here is an example of one of our labs just a few weeks into the semester. 

     

    Prompt: 

    1907407808_ScreenShot2019-02-16at9_18_37AM.thumb.png.832b69cb5dada81f6e80d82830fde532.png

    import java.util.Scanner;
    
    public class TextMsgExpander {
       public static void main(String[] args) {
          /* Type your code here. */
          Scanner scnr = new Scanner(System.in);
          String userInput;
          
          System.out.println("Enter text:");
          
          userInput = scnr.nextLine();
          
          System.out.println("You entered: " + userInput);
          System.out.println();
          
          if (userInput.indexOf("BFF") != -1) {
             userInput = userInput.replace("BFF", "best friend forever");
             System.out.println("Replaced " +"\"BFF\"" + " with " + "\"best friend forever\"" + ".");
          }
          if (userInput.indexOf("IDK") != -1) {
             userInput = userInput.replace("IDK", "I don't know");
             System.out.println("Replaced " +"\"IDK\"" + " with " + "\"I don't know\"" + ".");
          }
          if (userInput.indexOf("JK") != -1) {
             userInput = userInput.replace("JK", "just kidding");
             System.out.println("Replaced " +"\"JK\"" + " with " + "\"just kidding\"" + ".");
          }
          if (userInput.indexOf("TMI") != -1) {
             userInput = userInput.replace("TMI", "too much information");
             System.out.println("Replaced " +"\"TMI\"" + " with " + "\"too much information\"" + ".");
          }
          if (userInput.indexOf("TTYL") != -1) {
             userInput = userInput.replace("TTYL", "talk to you later");
             System.out.println("Replaced " +"\"TTYL\"" + " with " + "\"talk to you later\"" + ".");
          }
          
          System.out.println();
          System.out.println("Expanded: " + userInput);
       }
    }

    It's actually not too difficult if you read the material and can think like a computer, but the professor has already said that most of the class isn't even doing the participation activities which anyone with very little skill could do in a few minutes. 

    1. Show previous comments  9 more
    2. BuckGup

      BuckGup

      Seeing how popular python is now I feel like they should be teaching it instead of Java

    3. Sauron

      Sauron

      They do in a lot of places, it was in my first university programming course over 4 years ago. Not sure why that's not the case for him.

    4. BuckGup

      BuckGup

      In the two places I have been it's just Java and Python later on if you go down the path of AI

×