Question
for each programing question below: o Create a new VC++ project o Create a cpp file that: Defines and implements the functions in question Write
for each programing question below:
o Create a new VC++ project
o Create a cpp file that:
Defines and implements the functions in question
Write a main() to test the function
Lab Questions:
1. Given an integer n>0, write a recursive C++ function that returns the sum of the squares of 1 1. trough n
2. Write an iterative version of the above function
3. Implement the minArray algorithm (recursive) for an array of strings, that returns the "smallest" string in the alphabetic order.
4.Implement an iterative version of above function
5.Test all the above functions in a main () function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started