Question: (GUI) Develop a program using the OCTAVE program that contains 4 options for calculating numerical series, a through a menu (it is recommended to use

(GUI)

Develop a program using the OCTAVE program that contains 4 options for calculating numerical series, a through a menu (it is recommended to use the menu () function of octave) of options. All these programs must be in one as a menu Each of the options is described below:

1) The series will start with any positive integer (validate). If the number is even, then divide it by 2; if odd, multiply by 3 and add 1. Get successive integers by repeating the process. In the end, you will get the number 1, regardless of the starting integer. For example, yes the first number read is 5, the series would be: 5 16 8 4 2 1. The program should indicate at the end how many elements the series contains. Note.- It is requested to use a while loop.

2) Write a program in Octave that calculates the terms of the following series: 2 5 7 10 12 15 17 1800 At the end, the program will print: The sum of the even numbers in the series How many multiples of 7 were found in the series The average of all the numbers in the series Note.- It is requested to use a do-while loop

3) Obtain the sum of all powers of a number a from a1 to ak, where a and k are user-supplied values. The program should print a table with calculations performed as shown below: If a = 2 and k = 5, then it will print: Note.- It is requested to use the for cycle

4) This will be the output option, and the program should print a farewell before finishing.

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 Databases Questions!