Question: Please help with c++ A function named printTabs(no parameters) produces a table of numbers 1 to 10,their squares and their cubes are shown below. Number
Please help with c++
A function named printTabs(no parameters) produces a table of numbers 1 to 10,their squares and their cubes are shown below.
Number Square Cube
1 1 1
2 4 8
3 9 27
4 16 36
. . .
. . .
10 100 1000
Write function printTabs. Include the function i a program and call printTabs from main().
Modify by adding a function selTabs to accept the starting value of the table,the number of values to be displayed, and the increment between the values. If the increment is not explicitly sent,the function should use a default value of 1. A call to selTabs(6,5,2) should produce a table of five lines, the first line starting with number 6 and each succeeding number increasing by 2.
A sample run:
Enter the starting value of the table
6
Enter the number of values to be displayed
5
Enter the increment between the values
2
NUMBER SQUARE CUBE
6 36 216
8 46 512
10 100 1000
12 144 729
14 100 1000
THANK YOU!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
