Question: [25 pts] - Problem 1 - Gnirtsbus Write a function Gnirtsbus (no, your eyes are OK. It is actually the reverse of Substring) that

[25 pts] - Problem 1 - Gnirtsbus Write a function Gnirtsbus (no,

[25 pts] - Problem 1 - Gnirtsbus Write a function Gnirtsbus (no, your eyes are OK. It is actually the reverse of "Substring") that takes two strings and prints whether the second is in the first or the first is in the second and in which order i.e. forward or backward (what!?). Example: Gnirtsbus ("focus", "autofocus") prints "focus" is in "autofocus" in forward order. Gnirtsbus ("lab rats", "star") prints "star" is in "lab rats" in reverse order. 125 pts] - Problem 2 - Check Order Write a program that reads an integer from the user and then prints whether the digits at even locations are sorted in ascending order and the ones in the odd locations are sorted in descending order. Assume the first digit on the left is at location 0. Example: If the user enters 162537 prints True (1 7) If the user enters 123456 prints False (1

Step by Step Solution

3.39 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 The second string is in the first string The first string is in the second string in reverse order ... View full answer

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!