Docsity

Case Diagram-Programming For Engineers II-Quiz Solution, Exercises of Programming for Engineers

Partial preview of the text

Download Case Diagram-Programming For Engineers II-Quiz Solution and more Exercises Programming for Engineers in PDF only on Docsity!

Quiz-

Solution

  1. Write an addition program that displays the sum of two integers entered by the user in Object Oriented Programming.

class myCal

{

public:

int a,b; int sum() { return a+b; }

};

Use case diagram

  • A use case diagram to model the interactions between a user and the system.
  • The goal is to show the kinds of interactions users have with a system without providing the details.

Example

Classes

  • A class represent a concept.
  • A class encapsulates state (attributes) and behavior (operations).
  • Each attribute has a type.
  • The class name is the only mandatory information.

Name

Attributes

Operations