IGlobal University Sequence of Numbers Questionnaire

User Generated

UNEFUCENWNCNGV

Programming

IGLOBAL UNIVERSITY

Description

Q 1.) Given this sequence of numbers:

        9        13        19        27        37

a) What are the three next numbers?  (20 Points)

b) Write in your own word an algorithm to solve this problem for any numbers. (40 Points)

c) Explain how you would use Linear search to find the value 27? (40 Points)                                                                                                                                                                                                                                                                                                 

Q 2) What do you understand by the term 'linear search'?

You have an array - [13  6  7   12   15  19  66  8 ] and you are looking for the value 20.

What is the out come? 


User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

View attached explanation and answer. Let me know if you have any questions.

Running Head: Programming Questions

1

Programming Question
Student name
Course title
Date of submission

Programming Question

2

Q1)
a) 9 13 19 27 37 49 63 79
b) Algorithm to solve the above solution for any number
Step 1: Determine the difference between each two numbers
13-9=4
19-13=6
27-19=8
37-27=10
Step 2: We find that the difference are all even number with an increment of a difference of two
between each even number.
6-4=2
8-6=2
10-8=2
Step...


Anonymous
Awesome! Perfect study aid.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags