Write a program that reads the name of an element from the user and uses a recursive function to find the longest sequence of elements that begins with that value

Some people like to play a game that constructs a sequence of chemical elements where each element in the sequence begins with the last letter of its predecessor. For example, if a sequence begins with Hydrogen, then the next element must be an element that begins with N, such as Nickel. The element following Nickel must begin with L, such as Lithium. The element sequence that is constructed cannot contain any duplicates. When played alone the goal of the game is to constructed the longest possible sequence of elements. When played with two players, the goal is to select an element that leaves your opponent without an option to add to the sequence.

Write a program that reads the name of an element from the user and uses a recursive function to find the longest sequence of elements that begins with that value. Display the sequence once it has been computed. Ensure that your program responds in a reasonable way if the user does not enter a valid element name.

find the cost of your paper

What is the correct charge to the income statement for bad debts and bad debt provisions for the years to 31 December 20X1?

Trade receivables as at 31 December 20X1 were $25,000. The bad debt provision as at 1 January 20X1 was $812. During the year to 31 December 20X1 bad debts of….

Which of the following is an adjusting event?

IAS 10 – Events after the balance sheet date, distinguishes between adjusting and non-adjusting events. Which of the following is an adjusting event? (A) One month after the year end,….

Use your figures to explain why the directors preferred Package 2.

H needs to acquire a highly specialized piece of machinery costing $1,200,000 and which has an estimated useful life of ten years. They have asked a finance entity to provide….