Question

In: Computer Science

Draw two Sequence diagrams (by hand, or by tools) 1. Draw (by hand or tool) the...

Draw two Sequence diagrams (by hand, or by tools)

1. Draw (by hand or tool) the sequence diagram for a typical drive through restaurant protocol (choose as the 3 actors the driver who is ordering, the window attendant, and the cook).

2. Draw (by hand or tool) the sequence diagram for a typical web connection between your laptop as a client and a remote web server after you have typed a URL into the browser (you do not have to draw all the intermediate switches, routers, and firewalls), but do include DNS, HTTP, and TCP interactions.

Solutions

Expert Solution

1.) In the sequence diagram customer is the actor as well as cook and window attendant. Customer first ask for items to enquire about availability. Window attendant in turn ask cook for item availability and cook reply with yes or no. When cook reply with yes then window attendant reply the customer with yes and then customer places an order. Then the window attendant passes the order to the cook. Cook prepares the item and passes it back to the window attendant. Window attendant delivers the item to the customer and customer eat the food. After eating customer makes payment and window attendant process the payment and prepare bill. At last, the customer receives the bill.

In second case when the item is not available with the cook he replies a no to the window attendant and in turn window attendant reply a no to the customer and the diagram ends

2.) In the sequence diagram there are three actors named client, DNS server and web server. Client make a DNS request with the domain name of web address first to the DNS server and then the DNS server can reply in two ways. In first case, DNS server can reply with the IP address and then the client start a TCP connection to the web server. At this time, the lifeline of web server start. First, client send a TCP request and web server reply with acknowledgement and send a synchronisation request to which in turn, client reply back with the acknowledgement. After this process, client send http request to the web server and server process the request and reply with HTML, JavaScript and css pages. In the second case when DNS server reply with no IP address found, the connection terminates here and sequence diagram ends.


Related Solutions

Draw and submit one or more UML sequence diagrams for the following elevator user story: As...
Draw and submit one or more UML sequence diagrams for the following elevator user story: As a user of an elevator building, I need to be able to call an elevator to my floor and ride the elevator to another floor. know that my elevator request is being serviced (and that the elevator is not out-of-order). stop the elevator doors from closing on me as I enter or exit the car. know that I have arrived at the correct destination...
Draw (by hand is fine) P-T phase diagrams for water (do not worry about multiple solid...
Draw (by hand is fine) P-T phase diagrams for water (do not worry about multiple solid phases) and for a compound that is not water. Label the phases, the coexistence curves, and the sign of dP/dT for the curves. Also, explain the reason for the sign of dP/dT and what happens to pressure as temperature is increased for each curve.
1. Draw two separate demand and supply diagrams to represent the beer market – one for...
1. Draw two separate demand and supply diagrams to represent the beer market – one for Canada and one for Colorado. Be sure to label your graph properly (title, axes, curves, equilibrium, etc.) – your graph should be stand-alone which means a reader can easily interpret your graph. Show how the legalization of marijuana in each location has impacted the market for beer. Make sure you clearly indicate which curve shifts and compare the old equilibrium to the new one.*...
Using diagrams and explanations of the two right-hand rules required, explain why there is an attractive...
Using diagrams and explanations of the two right-hand rules required, explain why there is an attractive force between two parallel currents.
Pick any TWO of the following and draw a UML activity diagrams modeling: The process of...
Pick any TWO of the following and draw a UML activity diagrams modeling: The process of buying groceries, starting with making a shopping list. The process of making a sandwich. The process of making a schedule and registering for classes. The process you went through to apply for college. Your diagram should have concurrent flows. The process of two people washing a car. Include concurrent actions in your model. Please draw and explain clearly with good hand writing. Will upvote!...
Draw the graphs by hand. There are directions for submitting the assignment on Canvas. 1. On...
Draw the graphs by hand. There are directions for submitting the assignment on Canvas. 1. On an AS‐AD and IS‐LM graph, show the effects of a decrease in investor confidence. Assume that the economy was originally in general equilibrium (mark this point A). Show the short‐run effects of the decrease in investor confidence on the graph, marking the short‐run equilibrium B. Finally, describe how the economy adjusts to the long run, show this on your graph, and mark the long‐run...
Among the tools (e.g., graphics tools, knowledge-based tools, etc.), determine the type of tool that you...
Among the tools (e.g., graphics tools, knowledge-based tools, etc.), determine the type of tool that you would use for process improvement framework. Next, determine the type of tool you would use for problem solving framework. Justify your response.
Spacetime diagrams Draw, label everything, and explain the spacetime diagrams for the following situations: a) A...
Spacetime diagrams Draw, label everything, and explain the spacetime diagrams for the following situations: a) A running pole-vaulter carrying a pole through a barn such that the pole fits inside the barn even though the proper length of the pole is longer than the proper length of the barn. b) A pencil oriented perpendicular versus parallel to the direction of the motion c) An airplane in flight receiving a time/location signal from two airports
How do you draw VSEPR diagrams?
How do you draw VSEPR diagrams? Please fully discuss on this topic
how do you draw orbital diagrams
how do you draw orbital diagrams
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT