its a complete questions plz do notcopy paste Question We define…its a complete questions plzdo notcopy pasteQuestion We define the following hash function working on input strings of arbitrary length greater than 10. The end of the input string is padded with 0’s to be a multiple of 10 (es. the input 1011001110111 becomes 10110011101110000000). The message digest is a bit string of length 10. Assume the messeage m is of length k x 10. The bit number i for i =1,…,10 is obtained by taking the XOR of all the bits mi x10 of the message for j =1, …, k. For example, the bit number 3 of the digest of the meaasge 101100111011100000000111011100 (of length 3 x 10) is: m3?m13?m23 = 1?1?1?=1. In this problem, can you please show how the collision was calculated and the pre-image determined? Find a collision for the hash function we described. A simple collision can be observed for the two messages message 1 : 0 0 0 0 0 0 0 0 0 0 0 message 2 : 1 0 0 0 0 0 0 0 0 0 1 Both the messages produce the same digest 0 0 0 0 0 0 0 0 0 0 when hashed using the given scheme. Find a preimage of the digest 1100011111. One of the many preimages of the digest (d) 1 1 0 0 0 1 1 1 1 1 1 = 0 oplus 1 1 = 0 oplus 1 0 = 0 oplus 0 0 = 0 oplus 0 0 = 0 oplus 0 1 = 1 oplus 0 1 = 1 oplus 0 1 = 1 oplus 0 1 = 1 oplus 0 1 = 1 oplus 0 message (m) = 0 0 0 0 0 1 1 1 1 1 1 1 Is this hash function suitable for cryptography? Justify your answer.2Program Using C.Write a program that reads file cylinders.txt and sort the cylinders by volume. Output the sorted cylinders, including volumes in a text file called sorted_cylinders.txt. A cylinder has the following attributes:1. radius inches double2. height inches double3. Weight pounds doubleYou can assume the file as the following format for each cylinder.2.5, 12.2, 23.41. Name your program cylinders.c.2. The program should be built around an array of structures, with each structure containing information of a cylinder’s radius, height, weight, and volume. Assume that there are no more than 1000 cylinders in the file.3. Use fscanf and fprintf to read and write data.4. Modify the selection_sort function provided to sort an array of product struct. The cylinders should be sorted by volume in ascending order. The function should have the following prototype:void selection_sort(struct cylinder my_cylinders[], int n);5. Output the sorted cylinders, including volume, in a text file called sorted_cylinders.txt, in the following format.# radius Height Volume Weight0 3.500000 2.500000 96.211275 15.8000001 6.000000 1.000000 113.097336 2.90000022 2.400000 12.000000 217.146884 15.0000003 21.000000 1.000000 1385.442360 100.0000004 18.200000 14.200000 14776.820338 25.9000005 22.800000 10.600000 17311.130565 4.500000Suggestions:1. Set up cylinder struct.2. Use fscanf function to read the input file (note that fscanf returns number of entries filled).3. Initially output unsorted array to screen to make sure the file input and array setup are working.4. Modify the selection_sort function for processing cylinders.5. Initially output sorted array to the screen.6. When output is correct, write to the output file.selection_sort.c#include#define N 10voidselection_sort(int a[], int n);int main(void){int i;int a[N];printf(“Enter %d numbers to be sorted: “, N);for (i = 0; i < N; i)scanf("%d", &a[i]);selection_sort(a, N);printf("In sorted order:");for (i = 0; i < N; i)printf(" %d", a[i]);printf("n");return 0;}void selection_sort(int a[], int n){int i, largest = 0, temp;if (n == 1)return;for (i = 1; i < n; i)if (a[i] > a[largest])largest = i;if (largest < n - 1) {temp = a[n-1];a[n-1] = a[largest];a[largest] = temp;}selection_sort(a, n - 1);}3.Design an combination logic circuit to encode the given 4-key keyboard into a binary representation. For example, when key A is pressed, a logic-high value is measure o? of the row and column busses that intersect under the key (e.g., w and y). Ideally you would encode each letter into the binary ASCII value, however, for this question you may assume an o?set of decimal 60 is taken into consideration. Thus you must encode the following: A to 5, B to 6, C to 7, and D to 8. Also consider that when no key is pressed that the output should remain 0. You may assume that when a key is pressed, only one key is ever pressed at a time and with su?cient duration that circuit delay will not be a consideration. This question has four parts (a, b, c, d).a) Neatly state your ordered truth table for this design. Clearly label inputs, output, and all ensure all literals match the given labels. [2.5 marks]b) Neatly create and complete the required k-maps for your design based upon your truth table. Clearly label the tables showing literals and outputs. [2.5 marks]c) Minimize the k-maps using the minterms. Clearly state each Boolean function. Ensure to write each term in alphabetical order (i.e., correct: pqrst, incorrect: stqpr). [2.5 marks]d) Very neatly draw your design's digital circuit using standard logic symbols. [2.5 marks]4.Question:You are back from world tour visiting many countries. You have money in various currencies. Write...You are back from world tour visiting many countries. You have money in various currencies. Write a program to come up with how much money it will all amount to in USD. So if user entered they have 10 as the value of Euros they have, then the equivalent $ value would be 10 EUR = 11.0501 USD if it is 09/09/2019 conversion rate of 1 USD = 0.904968 EUR Use the conversion rates given below in the list - do not change it to today's values conversionRate = [ ["EUR", 0.85, "Euro"], ["GBP", 0.76, "British pounds"], ["INR", 71.96, "Indian Rupees"], ["AUD", 1.39, "Australian Dollars"], ["JPY", 111.35, "Japanese Yen" ], ["CNY", 6.84, "Chinese Yuan"] ] Prompt the user to enter how much do they have of each currency given in the list conversionRate. (If user doesn't have a specific currency, advise the user to enter 0).After getting entries for all currency types in the list, convert each of those into USD and print the total value in USD.Please enter 0 if you do not possess a particular currencyHow much do you have in EURO ? 10How much do you have in British pounds ? 10How much do you have in Indian Rupees ? 2000How much do you have in Australian Dollars ? 20How much do you have in Japanese Yen ? 10How much do you have in Chinese Yuan ? 10Total amount after conversion is 68.65 USDPlease enter 0 if you do not possess a particular currencyHow much do you have in EURO ? 10How much do you have in British pounds ? 10How much do you have in Indian Rupees ? 0How much do you have in Australian Dollars ? 0How much do you have in Japanese Yen ? 10How much do you have in Chinese Yuan ? 105.Question: Using Using C# and visual Studio,Write a class tha... Bookmark Using Using C# and visual Studio,Write a class that will allow for the addition, subtraction, multiplication and division of 2 complex numbers.The class must use operator overloading for , -, * and / operations. The class must have a ToString method that overrides the ToString method of the object class and properly formats the complex number ( 3.4 2i or -2.1 ? 1.5i). You may use the following as a starting point for your class: public class ComplexNumbers{public double Real{get ;privateset;}public double Imag{get ;private set;}public ComplexNumbers(double r, double i){Real = r;Imag = i;}public static ComplexNumbers operator (ComplexNumbers lhs, ComplexNumbers rhs){double r = lhs.Real rhs.Real;double i = lhs.Imag rhs.Imag;return new ComplexNumbers(r, i);} Your console application to demonstrate the class's functioning must read the complex number components from a file called data.txt, add the first 2 complex numbers, subtract the next 2, multiply the next 2 and divide the last 2 and then write the results both to the screen and a file called outData.txt. Screen output should be properly formatted with the appropriate signs and the i for imaginary. The file output should be structured in the same manner as data.txt is formatted, with just the components. data.txt has the following contents and structure. The first value is the real component and the second is the imaginary component. 2 4 1.5 -3 2.3 -1.1 -1.8 2.5 3 5 7 -1 3 3 1 -2Engineering & Technology Computer Science COMMS MISC

Order your essay today and save 20% with the discount code ESSAYHELP