(a)
To modify the programwritten in the previous question number 9a. The name of the modified function is selTab(). This function accepts three integer type value from the calling function. The first value is the starting value of the table. The second value is the number of values to be displayed. And the third value is the increment value. Call the function selTab()with the value 6, 5, and 2 to produce a table of five lines, the first line starting with the number 6 and each succeeding number increasing by 2.
(b)
- startingValue, numOfValue,increment,andivariables are used in the program.
- selTab () function is include in the program to display the data.
Program Description: The main purpose of the program is to include the function named selTab () in the program. Call the function from the main () function. Test the function named selTab () by passing the values.
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
C++ for Engineers and Scientists
- Use DeMorgan’s Law to find and simplify the negation ?′ of the following function: ?(?, ?, ?) = ?? + ?′? + ?′?′arrow_forward4. What does this function return? Which principle does it illustrate?arrow_forwardState whether each of the following is true or false. If false, explain why g) Definitions can appear anywhere in the body of a function.arrow_forward
- (Practice) Run Program 7.10 to determine the average and standard deviation of the following list of 15 grades: 68, 72, 78, 69, 85, 98, 95, 75, 77, 82, 84, 91, 89, 65, and 74.arrow_forwardDerive the run time of the following codearrow_forward7. using c++, Write a void function that accepts an integer array a and a integer SizeA, and an integer n, and adds n to every element in that array. Be sure to develop an appropriate name for your function.arrow_forward
- Implement the following function: *Code should be in pythonarrow_forward1-Write a Matlab function ( function's name is your name) that returns to obtain y(t)=cos(2t), where the range and the number of data points are the function's arguments. { and my name is abdirizak ahmed } 2-Write a Matlab code to sketch using plot function, y(t)=3 sin(t) for 3 periods.arrow_forwardAlso test the function in mainarrow_forward
- - in this exercise, please do not include and use string class. The function is using only array notation and manipulation.- string functions such as strlen is not allowed.- it should not have multiple return statements in the same function- there should be no global variable.- the function should not traverse the arrays more than once (e.g. looping through the array once only) A C++ PROGRAM named "changeCase" that takes an array of characters terminating by NULL character (C-string) and a boolean flag of toUpper. If the toUpper flag is true, it will go through the array and convert all lowercase characters to uppercase. Otherwise, it will convert all uppercase to lowercase. For example, if the array is {'H', 'e', 'l', 'l', 'o', '\0'} and the flag is true, then the array will become{'H', 'E', 'L', 'L', 'O', '\0'}. And if the flag is false, the array will become{'h', 'e', 'l', 'l', 'o', '\0'}arrow_forward6.2.2 function call with parameter: printing formatted measurementsarrow_forwardAnswer the following. The correct one in function if the code.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning