Question 1: Read in 2 strings and output "yes" if they form a palindrome when concatenated in either order and "no" otherwise.
input: foo goofQuestion 2: Given floating point numbers a, b, and c, output "yes" if the parabola y = ax2 + bx + c has real roots (that is, if there is some point (x,0)).
output: yesinput: goof foo
output: yesinput: food goof
output: no
Question 3: Goobles are a currency, like Dollars or Lira. Read in a floating point number representing the exchange rate -- that is, the number of Goobles per Dollar. Then read in 4 integers representing some number of pennies, nickels, dimes, and quarters. Output the value of that money in Goobles.
input: 0.75 5 5 2 6Question 4: Read in a positive integer N and output the largest prime P < N where P has no even digits.
output: 1.5
Question 5: Read in an integer N followed by a word W followed by N more words of the same length as W. Output the word after W which is "closest" by Hamming Distance to W -- that is, the one which differs by the fewest characters from W.
input: 4 port pond tart post corkQuestion 6: Read in a number N and output the first Fibonacci number larger than N. Recall that the Fibonacci numbers are 1, 1, 2, 3, 5, 8, 13...
output: post
Question 7: Read in an odd positive integer N followed by N more integers, and output the median (do not count the first number N in the list).
input: 3 104 26 498
output: 104