Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions