![]() | |
Project 10: Assigned: Mon Apr 07 2025 In this project, you will write functions to calculate XOR of booleans. In the final part, you will write a function that uses multiple threads! Part 0, 10 points: Write a function, Xor that takes two boolean (bool ) parameters and returns the XOR of them.Part 1, 30 points: Write a function, XorList that takes an array of boolean values and returns the XOR of all elements. (The XOR of more than two booleans works the same way as addition and multiplication: just keep XORing!)Part 2, 30 points: Write a function, XorListBounds([]bool, int, int) that returns the XOR of all elements in the array between the first and second integer parameters (inclusive on both ends).Part 3, 30 points: Write a function, ParallelXorList([]bool, int) that takes an array of booleans and the number of threads to use and returns the XOR of all elements in the array. It should use the requested number of (software) threads.Submitting your Project: Put all your code in one file named |