Professional Documents
Culture Documents
Assignment # 4
DATE: 08-04-2021
Page 1 of 5
You select country = United States and find the city by entering Dallas .
You select country = United States and find the zip code by entering 10001 .
You select country = United States and find the city by entering Los Angeles.
You select country = Pakistan and find city = Islamabad.
Qno1: What you see the difference in the results of all these options - please
write the difference in results (analysis activity). 5 marks
Solution:-
You select country = United States and find the city by entering Dallas .
1:-Company Name:-
Moderna and Pfizer, Jhonson & Jhonson) in which some are shipped and some just show
shipped not any company name mentioned.
2:-Public Registration:-
In some areas public registration website url is present and some are not.
3:-Brand Name:-
4:-Map:-
5:-Mobile Number
6:- Appointment:-
You select country = United States and find the zip code by entering 10001 .
1:-Company Name:-
Two company covid-19 vaccine are available( Moderna and Pfizer Johnson & Johnson) but
there is not about shipped
2:-Public Registration:-
Page 2 of 5
In some areas public registration website url is present and some are not.
3:-Brand Name:-
4:-Map:-
5:-Mobile Number:-
6:- Appointment:-
You select country = United States and find the city by entering Los Angeles.
1:-Company Name:-
Three company covid-19 vaccine are available( Moderna and Pfizer , Johnson & Johnson) but
there is not about shipped
2:-Public Registration:-
3:-Brand:-
4:-Map:-
5:-Mobile Number
6:- Appointment:-
Page 3 of 5
1:-Company Name:-
2:-Public Registration:-
3:-Brand:-
4:-Map:-
5:-Mobile Number
6:- Appointment:-
Qno2: Identity which creational patterns should you apply - explain the intent
of each pattern and the place/scenario will you apply? 5 marks
Solution:-
Singleton Design Pattern:-
This Singleton Design Pattern pattern involves a single class which is responsible to create an
object while making sure that only single object gets created. This class provides a way to
access its only object which can be accessed directly without need to instantiate the object of
the class.
Intent of Pattern
There is single platform of (find Vaccine Now) to visit everyone and this web application show
the related results to every individual.
When we open a website form that link https://findvaccinenow.com/ . On that page single
input field is required to find Vaccine of Carona.
Example :-
When user selected United States and find the city by entering Dallas or zip code by
entering 10001 or entering Los Angeles
Page 4 of 5
This website show the result related to the entering city into that input.
In this way a single input is used among all cityes.
Page 5 of 5