Question: Question 1 ( 1 0 points ) Given an arithmetic sequence of numbers, check whether the given number aligns with the sequence or not. The

Question1(10 points)
Given an arithmetic sequence of numbers, check whether the given number aligns with the sequence or not. The function takes four sequentially ordered numbers and searches for the query. Your task is to determine whether the query can be the next element of the sequence.
Contract
contract: isInSequence: n1(number) n2(number) n3(number) n4(number) query(number)
boolean
Examples
(check-expect (isInSequence -18-23-28-33-53) #False)
(check-expect (isInSequence -9-25-41-57-73) #True)
(check-expect (isInSequence 2-7-16-25-34) #True)
You can only use this list of function:
Question 1 ( 1 0 points ) Given an arithmetic

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!