Question: Create a program with the following menu options: 1) Author Info 2) Calculate Result CYR3 eRt When the user chooses option 1 print program author

 Create a program with the following menu options: 1) Author Info2) Calculate Result CYR3 eRt When the user chooses option 1 print

Create a program with the following menu options: 1) Author Info 2) Calculate Result CYR3 eRt When the user chooses option 1 print program author name and student id to the screen When the user chooses option 2 ask for a starting value and calculate the result based on the information below When the user chooses option @ exit the program Until the user chooses option @ the program should keep prompting for user input. The program should not crash. Create a recursive function with the following behavior: For determining if a number is even or odd, look at the whole number portion, so 3.75 is odd, while 2.25 is even. If the current value is even add the current value to the total. If the current value is odd, subtract the current value from the total The next number in the sequence will be: 1.6 times the current value if the current value is even. the current value divided by 4 if the current value is odd and above 1@ the current value is divided by 3 if the value is odd and 1@ or below. The sequence stops if the current value in the sequence is below .5. Your program should ask the user to enter a starting value and then print all values in the sequence as well as the ending total. Example output: Starting value: 4 val: 4.0000 6.4000 10.2400 16.3840 26.2144 41.9430 10.4858 16.7772 26.8435 42.9497 68.7195 189.9512 27.4878 6.8719 10.9951 17.5922 4.3980 7.8369 2.3456 3.7530 1.2510 0.4170 Result is: 44.6098 Starting value: 10 val: 190.0000 16.0000 25.6000 6.4000 10.2400 16.3840 26.2144 41.9430 10.4858 16.7772 26.8435 A42.9497 68.7195 189.9512 27_4878 6.8719 18.9951 17.5922 A_3980 7.0369 2.3456 3.7538 1.2510 N Result is: 41.0098 Starting value: 3 val: 3. 0000 1. 0000 0.3333 Result is: -4.0000 Starting value: 100 val: 100 . 0000 160. 0000 256.0000 409 . 6000 102.4000 163.8400 40.9600 65.5360 16.3840 26 .2144 41 . 9430 10.4858 16.7772 26.8435 42.9497 68.7195 109.9512 27.4878 6.8719 10.9951 17.5922 4 . 3980 7. 0369 2.3456 3. 7530 1.2510 0.4170 Result is: 44. 3538

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