Question: 1. [3 marks] Write a pseudocode for the palindrome problem. That is, write the function palindrome so that it behaves as follows: palindrome (abac)
![1. [3 marks] Write a pseudocode for the palindrome problem. That is,](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/03/65f947bad3693_1710839155914.jpg)
1. [3 marks] Write a pseudocode for the palindrome problem. That is, write the function palindrome so that it behaves as follows: palindrome ("abac) outputs "Not a palindrome" palindrome ("cbc") outputs "It is a palindrome" etc [Hint: study the C code provided at course website] 2. [2 marks] Write a pseudocode for an algorithm to double the values of a list of integers. 3. [2 marks] Write a pseudocode for an algorithm called swap, which takes two variables as input and which swaps their respective values. Example: If a 66 and b:=77, then swap (a,b) will change the value of a to 77 and b to 66.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
