@moaaz said in CS603 Assignment No. 1 Solution and Discussion:

Questions No 02 Marks (5)

Consider a scenario where we have to perform some operations on the basis of the number. If the number

is odd, perform the following operations:Add 5 to the number

Multiply it by 5

Display the number

If the number is even, then perform the following operations:

Add 7 to the number

Multiply it by 7

Display the number

At the end add 20 to the number regardless if it is even or odd. According to the above scenario, the activity diagram is given below:Redraw the above diagram by using Decision and Merge nodes.

**Solution:**

2a595f28-2f8e-49a3-9df5-8fb27e42a024-image.png