Building a Simple Messaging System

Let's think about a simple text messaging system that lets its users send messages to each other. How is this system built? What are the possible ways we can approach this problem? The second option seems simpler. Let's start with that. Now, let's say we want to build a MessageBuddy class. Think back to the requirements and design steps:

Where to Start? (~20 min)

Let's start typing up our program together and then you can work in groups or work individually to fill in more details.

Where do we start?

Some questions to consider when you are stuck:

Filling in Method Details (~20 min)

The MessageBuddy class should be able to: Once you have these method stubs, what do we write inside the methods to get them to work?

Completing the Program (~20 min)

For those who are moving along quickly, here's a potential sample output of what our program should do when we run it. Try to get your program to generate this output as well.

Welcome to Message Buddy, Sara
Welcome to Message Buddy, Tori
Sara, type the message you want to send:
what are you doing after class?
Sara, your message has been sent
Tori, you have a new message from Sara:
what are you doing after class?
Tori, type the message you want to send:
not much, any ideas?
Tori, your message has been sent
Sara, you have a new message from Tori:
not much, any ideas?