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

Sir Prachur Sharma took this quiz in class of Programming for Engineers course at Bhagwant University Rajasthan. It includes: Case, Diagram, Addition, Program, Display, Sum, Integers, Object-oriented, Programming, Member, Function

Typology: Exercises

2011/2012

Uploaded on 07/25/2012

anasuya
anasuya 🇮🇳

4

(9)

85 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Quiz-1
Solution
docsity.com
pf3
pf4
pf5

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