Question 7 15 pts The function sequence accepts an integer parameter named x. The function CALCULATES and prints out the
Posted: Fri May 20, 2022 1:14 pm
Question 7 15 pts The function sequence accepts an integer parameter named x. The function CALCULATES and prints out the following number sequence (given x=8): 4, 5, 9, 14, 23, 37, 60, 97.... it will print x numbers based on the value of x parameter which can be ANY positive integer value. in other words: * --> how many numbers to print in the sequence, there is no limit. write the function and its body Examples: sequence (2) prints 4,5 sequence (5) prints 4, 5, 9, 14, 23 NOTES: DO NOT use an array or a vector DO NOT use anything that was not studied in course contents. NOTE: YOU CAN NOT hard-code the numbers (except for starting value(s) ), the value of x can be anything and the numbers must be generated accordingly NOTE: These are NOT random numbers, you have to figure out a way to calculate them. Edit View Insert Format Tools Table 12pt Paragraph BI V A T :