Assignment 4

Please send the script codes or screen captures of the assignments below. The deadline is 1. 08. 2023. (D+20)
1. Declare an immutable struct customers that have names, addresses of street numbers, postcode numbers, email address, and phone numbers as its fields.
1. Create an instance of customers ; Sam lives in Feldsieper Str. 50G, 44809 Bochum. You can contact him by calling 022-31551 or mailing to
2. Write a new function that reads the values of the fields instantiated, such as the names and addresses stated above, and prints them on the REPL screen.
3. Suppose a customer told you that he moved to a new apartment in Breddestraße 8, 44866 Bochum. Write a function that revises this customer’s information. Show that by using the function made in 1.2., the REPL screen prints out this new address.
2. Write a program as instructed. Also, send the output figures in both format of a pdf file and a png file, together with the codes.
1. Write a program that shows a similar figure as below
2. Label the nodes by numbers.
3. Make a distinction in the nodes according to the alphabet group
they belong to. (nodes A1, A2, A3 should be colored differently with nodes D1 and D2)
4. Calculate the following centrality measures and compare which node is most central according to the related measure.
1. Degree Centrality (normalized) 2. Closeness Centrality
3. Betweenness Centrality
4. Eigenvector Centrality
5. PageRank Centrality
6. Katz Centrality (set the free centrality at 1)

Programming Help
3. Add 3 workers to your master process. Compare the computational time on running all the codes assigned in the previous questions 1 and 2 altogether, with and without parallel computing.
程序代写 CS代考 加QQ: 749389476