Write a C# program to check if a deep-space radio-telescope frequency log contains a valid consecutive sequence of five signals within a batch of 200 telemetry records.
When writing your program you should assume:
telemetrySignals that contains the integer frequencies of the 200 recordstelemetrySignals[0] contains the frequency of the first record and telemetrySignals[199] contains the frequency of the last recordtelemetrySignals are stored in ascending numerical orderhasAnomalyRun that has an initial value of falseYour program should set hasAnomalyRun to true if there is a valid consecutive sequence of five records (where each adjacent frequency increases by exactly 1).
You should use meaningful variable name(s) and C# syntax in your answer.
Sequence Examples:
..., 101, 102, 103, 104, 105, ......, 45, 46, 48, 49, 50, ......, 80, 81, 81, 82, 83, ...
(The duplicate frequency 81 breaks the continuous progression of five unique adjacent elements)298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.