subject

Write a recursive function named reversewithinbounds that has an argument that is an array of characters and two arguments that are bounds on array indices. the function should reverse the order of those entries in the array whose indices are between the two bounds (including the bounds). for example, if the array is: a[0] == 'a' a[1] == 'b' a[2] == 'c' a[3] == 'd' a[4] == 'e' and the bounds are 1 and 4, then after the function is run the array elements should be: a[0] == 'a' a[1] == 'e' a[2] == 'd' a[3] == 'c' a[4] == 'b' embed the function in a program and test it. after you have fully debugged this function, define another function named reversecstring that takes a single argument that is a c string and modifies the argument so that it is reversed. this function will include a call to the recursive definition you did for the first part of this project, and need not be recursive. embed this second function in a program and test it. turn in only this final result (with output, of course).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:20
What is the full meaning of rfid in computer
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
You know the right answer?
Write a recursive function named reversewithinbounds that has an argument that is an array of charac...
Questions
question
Mathematics, 23.03.2020 21:26
question
Mathematics, 23.03.2020 21:26
question
Mathematics, 23.03.2020 21:26
question
English, 23.03.2020 21:26
question
English, 23.03.2020 21:26
Questions on the website: 13722363