Actor System 1. Sales clerk answers telephone and connects to a customer 2. Clerk verifies customer information 3. Clerk initiates the creation of a new order 4. Customer requests an item to be added to the order 5. Clerk verifies the item (Checks availability) 6. Clerk adds item to the order 7. Repeat steps 4, 5, 6 until all items are added to the order 8. Customer indicates end of order, clerk enters end of order 9. Customer submits payment; clerk enters amount 3.1 Create a new order 5.1 Display item information 6.1 Add create an order item 8.1 Complete order 8.2 Compute totals 9.1 Verify payment 9.2 Create order transaction 9.2 Finalize order Given the flow of activities described above, create an activity diagram. Ensure you use the correct symbols.
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
Actor |
System |
1. Sales clerk answers telephone and connects to a customer 2. Clerk verifies customer information 3. Clerk initiates the creation of a new order 4. Customer requests an item to be added to the order 5. Clerk verifies the item (Checks availability) 6. Clerk adds item to the order 7. Repeat steps 4, 5, 6 until all items are added to the order 8. Customer indicates end of order, clerk enters end of order 9. Customer submits payment; clerk enters amount |
3.1 Create a new order
5.1 Display item information 6.1 Add create an order item
8.1 Complete order 8.2 Compute totals 9.1 Verify payment 9.2 Create order transaction 9.2 Finalize order |
Given the flow of activities described above, create an activity diagram.
Ensure you use the correct symbols.
Step by step
Solved in 2 steps with 1 images