Write a complete program that will create a table as follows: The table will have 5 columns headed by: NUMBER, DIVIS3, DIVIS5, SQROOT, and FRTHROOT defined as follows:
• NUMBER generate the odd numbers from 15 to 53 (inclusive)
• DIVIS3 if the number is divisible by 3, then put a * in this column
• DIVIS7 if the number is divisible by 7, then put a * in this column
• SQROOT the square root of the number in the NUBMER column
• FRTHROOT the fourth root of the number in the NUBMER column (the square root of the square root is the fourth root)
After the table has printed, skip several lines and print the following:
• The number of numbers that are divisible by 3
• The number of numbers that are divisible by 7
• The average of the numbers that are divisible by both 3 and 7.
• The average of the square roots (of all the numbers).
• The sum of the numbers in the NUMBER column
• The sum of the numbers in the SQROOT column
This is what I have so far..but it's only because the professor did most of it. I don't understand how to use the functions.
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int i;
int numNumbers = 0;
int div3 = 0;
int div7 = 0;
int sum = 0;
float sumSqrt = 0.00;