Symbols at the end of links and what they mean (hopefully) in order of importance:
- ?? - Exam or assignment help
- ? - Directly related to course content
- ! - Indirectly related to course content
- !! - Additional or Fun
// Your weekly simple chatbot program brought to you by our friend ChatGPT
import java.util.Scanner;
public class Chatbot {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Hi, I'm a chatbot! What's your name?");
String name = input.nextLine();
System.out.println("Nice to meet you, " + name + "!");
System.out.println("How are you feeling today?");
String mood = input.nextLine();
if(mood.equals("good")) {
System.out.println("That's great to hear!");
} else if(mood.equals("bad")) {
System.out.println("I'm sorry to hear that. Is there anything I can do to help?");
} else {
System.out.println("I'm not sure what you mean. Can you elaborate?");
String response = input.nextLine();
System.out.println("Okay, I understand. Thanks for telling me!");
}
}
}
- Smiley Test ?
- Smiley Panel Solution ?
- Pokemon Sprite !
- Disc 1B recording
- link
- Passcode: zC%nN.7j
- Ice cream Confirm dialog
- Ice cream Confirm dialog with smiley and sad emoji
- Ice Cream Confirm Dialog with Icon and emoji
- Practice for try-catch
- HW4 Hints
- Disc 1B recording
- link
- Passcode: eAW?R5.k
- HW4 Hints
- Practice for try-catch
- HW4 Hints