热门代写
- 代做ECE-242 Applied Feedback...
- 代写Java Lab 16: Collections代...
- 代写SEQA 100 Exercise 07: Full...
- 代做EIE2105 Digital and Computer...
- 代做N1592 Trading Strategies...
- 代写NE/PS212 - Introduction to...
- 代做CMT316 Applications of Machine...
- 代做21-259: Calculus in Three...
- 代做Java Lab 17: More...
- 代做Investigating the Presence of ...
代写CS 120 M2 Coding Challenge: Recursion代写Python语言

M2 Coding Challenge: Recursion
Computer Science 120—Assignment
Instructions:
For each of your chosen programs:
• Use pseudocode to plan out the program.
• Write the code for the program and use whitespace to make it easier to read.
• Run the program and check for errors.
• List any corrections you made to your original plan at the end of the program using pseudocode.
• Cite where and how you used generative AI to assist you as a comment at the end of your program.
• Save the program using an appropriate name.
|
Complete BOTH of the following programs:
Program 1: Tribonacci
Tribonacci numbers are a sequence of numbers where each number is the sum of the three preceding ones.
Write a program to recursively calculate a given Tribonacci number.
Example output:
Program 2: Power Function
Write a program to recursively calculate the power of a given base raised to an exponent.
Example output:
Upload your two Python code files in ManageBac