Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You must implement a function, called modify (). This function must have a void return type. To explain what it does, consider the program on
You must implement a function, called modify (). This function must have a void return type. To explain what it does, consider the program on the next page. In each iteration of the for-loop, the variable letter contains a new lower-case letter of the alphabet. The function modify should change letter to contain the letter in the alphabet that comes 1 spot after it (so ' e ' becomes ' f ', etc.). The letter ' z ' is changed to ' a '. You can choose what parameters the function modi y takes; it must have a void return type. Your task: 1. Add a single line of code in main in which you call your modi fy function. Write this line in the blue-dashed-line box. You cannot make any other modifications to main. 2. Write your modify function on the next page below the code box. Assume it will be placed where we added the comment in the code. Page 2 of 5 // This is test data char inputs[8] ={,, ', ' b ', ' y ', ' g ', ' z ', ' a ' }; char letter; int i; for (i=0;i
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