Question: PROBLEM 7:: Write a shell/bash program which would reads lines of text from below and prints out the line numbers and the number of words

PROBLEM 7::

Write a shell/bash program which would reads lines of text from below and prints out the line numbers and the number of words the line has.

Line 1 has 10 words

Line 2 has 15 words

:

:

:

 Al-Khwrizm's contributions to mathematics, geography, astronomy, and cartography established the basis for innovation in algebra and trigonometry. His systematic approach to solving linear and quadratic equations led to algebra, a word derived from the title of his book on the subject, "The Compendious Book on Calculation by Completion and Balancing" On the Calculation with Hindu Numerals written about 820, was principally responsible for spreading the HinduArabic numeral system throughout the Middle East and Europe. It was translated into Latin as Algoritmi de numero Indorum. Al-Khwrizm, rendered as (Latin) Algoritmi, led to the term "algorithm". Some of his work was based on Persian and Babylonian astronomy, Indian numbers, and Greek mathematics. Al-Khwrizm systematized and corrected Ptolemy's data for Africa and the Middle East. Another major book was Kitab surat al-ard ("The Image of the Earth"; translated as Geography), presenting the coordinates of places based on those in the Geography of Ptolemy but with improved values for the Mediterranean Sea, Asia, and Africa. He also wrote on mechanical devices like the astrolabe and sundial. He assisted a project to determine the circumference of the Earth and in making a world map for al-Ma'mun, the caliph, overseeing 70 geographers. When, in the 12th century, his works spread to Europe through Latin translations, it had a profound impact on the advance of mathematics in Europe.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!