Question: Write a complete program that will create a table as follows: The table will have 5 columns headed by: NUMBER, DIVIS4, DIVIS6, SQROOT, and FRTHROOT
Write a complete program that will create a table as follows: The table will have 5 columns headed by: NUMBER, DIVIS4, DIVIS6, SQROOT, and FRTHROOT defined as follows: generate the odd numbers from 25 to 57 (inclusive) if the number is divisible by 3, then put a * in this column if the number is divisible by 5, then put a in this column the square root of the number in the NUBMER column the fourth root of the number in the NUBMER column (the square root of the square root is the fourth root) NUMBER DIVIS3 DIVISS SQROOT FRTHROOT After the table has printed, skip several lins and print the following: loce The number of numbers that are divisible by 3 The number of numbers that are divisible by 5 The average of the numbers that are divisible by both 3 and 5./ 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 The average of the numbers that are divisible by 7 aumeange coudicknh SAMPLE OUTPUT DIVISS SQROOT FRTHROOT NUMBER DIVIS3 5.00 5.20 2.23 2.28 25 27 29 31 33 . . . X.XX X.XX . The number of the numbers divisible by 3 is nnn. The number of the numbers divisible by 5 is nnn. The average the of numbers divisible by both 3 and 5 is nnn. The sum of the numbers is nnn. The sum of the square roots is nnn. The average of the numbers divisible by 7 is nnn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
