Question: Write a Go program that processes a list of messages using a concurrent function. A main function passes the list of messages to a

Write a Go program that processes a list of messages using a concurrent function. A main function passes the list of messages to a go function that encrypts each message and send each resulting encrypted message to a channel. The main function simply prints the encrypted messages as they are received, in any order. [8] func main() { // List of messages messages: ( ) string("Csi2520", "Csi2120", "3 Paradigms", "Go is 1st", "Prolog is 2nd", "Scheme is 3rd", "uottawa.ca", "csi/elg/ceg/seg", "800 King Edward"} } // Create channels??? // call go funtion go CaesarCipherList (messages [:],2, // print results ??? // add synchronisation ??? ) // send channels??? Le rsultat produit devrait tre comme suit : The result will look as follows: EUK EUK RCTCFKIOU IQKUUV RTQNQIKUPF UEJGOGKUTF WQVVCYCEC EUKGNIEGIUGI MKPIGFYCTF
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
Heres an example Go program that processes a list of messages using a concurr... View full answer
Get step-by-step solutions from verified subject matter experts
