2. What is the purpose of a class diagram (or entity-relationship diagram)?
A class diagram displays the key elements and associations, it presents a visual picture of the data needed by the system, and it is used to communicate with users and designers.