Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment #2 Write a complete program that will create a table as follows: The table will have 4 columns headed by: NUMBER, SQUARE, SQROOT, and

image text in transcribed
image text in transcribed
Assignment #2 Write a complete program that will create a table as follows: The table will have 4 columns headed by: NUMBER, SQUARE, SQROOT, and FRTHROOT defined as follows: NUMBER SQUARE SQROOT FRTHROOT generate the odd numbers from 5 to 25 (inclusive) the square of the number 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). After the table has printed, skip several lines and print the following: The number of numbers. The sum of the numbers. The sum of the squares. The sum of the square roots. The sum of the fourth roots. SAMPLE OUTPUT NUMBER SQUARE SQROOT FRTHROOT 25 1.50 1.63 2.24 2.65 3.00 3.32 3.61 1.73 169 225 1.97 289 361 ONNO The number of numbers is 11. The sum of the numbers is 165. The sum of the squares is 2915. The sum of the square roots is 14.54. The sum of the fourth roots is 21.23. NOTES ON PROGRAM SUBMISSIONS 1. You must use the standard heading (refer to previous assignments) on your source page. 2. Use meaningful variable names. 3. Staple all pages together (source program with header at the top). 4. Use comments, blank lines and indentation patterns discussed in class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

More Books

Students also viewed these Databases questions

Question

What message-sending skills do you still wish to improve?

Answered: 1 week ago

Question

What is an interface? What keyword is used to define one?

Answered: 1 week ago

Question

4. Does cultural aptitude impact ones emotional intelligence?

Answered: 1 week ago