Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an IPO Chart and Write Pseudocode The term algorithm was derived from the name of Muhammad ibn Musa al-Khwarizmj (c. 780c.850), a Persian mathematician

image text in transcribed
image text in transcribed
Create an IPO Chart and Write Pseudocode The term algorithm was derived from the name of Muhammad ibn Musa al-Khwarizmj (c. 780c.850), a Persian mathematician who introduced both Arabic numerals and algebra to the world. The term algebra is derived from the Latin translation of the title of his book, The Compendious Book on Calculation by Completion and Balancing", which introduced algebra. The following algorithm for a common algebralc operation is from an English translation of this work. You know that all mercantile transactions of people, such its buying and selling exchange and hire, comprehend aways two notions and four numbers, which are stated by the enquiree, namely, measure and price, and quantity and sum. The number which expresses the measure is inversely proportional to the number which expresses the sum and the number of the price inversely proportional to that of the quantity. Three of these four numbers are always known, one is unknown, and this is implied when the person inquiring says thow. much? and it is the object of the question. The computation in such instances is this, that you try the thrse gwen numbers; two of them must necessanily be inversety proportional the one to the other. Then you multiply these two proportionate numbers by each other, and you divide the product by the third given number, the proportionate of which is unknown. The quotient of this division is the unknown number, which the inquirer asked for: and it is inversely proportional to the divisori Examples. - For the first case: If you are told ten for six, how much for four? then fen is the measure: six is the price: the expression how much implies the unknown number of the quantity; and four is the number of the sum. The number of the measure, which is ten, is inversely proportionate to the number of the sum, namely, four. Multiply, therefore, ten by four, that is to say, the two known proportionate numbers by each other, the product is forty. Oivide this by the other known number, which is that of the price, namely, sik. The quotient is six and twa-thirds: it is the unknown number, implied in the words of the question how much 7 it is the quantioy, and inversely proportional to the six which is the price. This algorithm is complex, so read over it a couple of times untilyou get a better understanding of what it means. Think of an example of where this atgorithm might be applied, such as at a farmer's market. There are four variables identified in the passage: measure, price, sum. and quantity. You'll answer the two parts to this algorithm design project in Gradescope. Here are the two tasks: Part I-Complete an IPO chart for the algorithm (5 points) - The first step in this part is to decide which three of the four variables are inputs and which one is the output - Then use the second paragraph of the algonthm to determine the calculation needed to get the output from the input variables, All three of the input varables will be used in this calculation. The result of the calculation is the assigned to the output variable. Part II - Write the algorithm in pseudocode that answers the "how much?" (15 points) There is flexblity in the way you can phrase your pseudocode statements but make sure they adhere to the pseudocode guldelines given in the Week 1 Module

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