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,

 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!