Write a computer program for 2D transformations of a regular pentagon with side of 10 units....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a computer program for 2D transformations of a regular pentagon with side of 10 units. For the pentagon, vertex A is at the origin and the side AB is along X axis. E D A (0,0) B -10- C Do the following transformations sequentially and plot all the transformations using a computer program. 1) Scale the pentagon by a factor of 5. 2) Rotate the pentagon by 90° around a point F (5, 9.5) in anticlockwise direction. 3) Reflect the pentagon such that Fnew is (-5, 9.5). Write a computer program for 2D transformations of a regular pentagon with side of 10 units. For the pentagon, vertex A is at the origin and the side AB is along X axis. E D A (0,0) B -10- C Do the following transformations sequentially and plot all the transformations using a computer program. 1) Scale the pentagon by a factor of 5. 2) Rotate the pentagon by 90° around a point F (5, 9.5) in anticlockwise direction. 3) Reflect the pentagon such that Fnew is (-5, 9.5).
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program using the matplotlib library to perform the specified transformations and plo... View the full answer
Related Book For
Corporate Finance
ISBN: 9781265533199
13th International Edition
Authors: Stephen Ross, Randolph Westerfield, Jeffrey Jaffe
Posted Date:
Students also viewed these finance questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Match the items below by entering the appropriate code letter in the space provided. An entry that involves three or more accounts Transferring journal entries to ledger accounts The side which...
-
In the past decade, actions to protect consumers have increased. For example, the Sarbanes-Oxley Act of 2002 rose out of the Enron debacle; Edward Snowden, an ex-CIA computer technician, became a...
-
The finished inside diameter of a piston ring is normally distributed with a mean of 10 centimeters and a standard deviation of 0.03 centimeter. (a) What proportion of rings will have inside...
-
A fluid is said to be ideal, if it is: (a) Incompressible (b) Inviscous (c) Viscous and incompressible (d) Inviscous and incompressible
-
Cran Health Products is a cranberry cooperative that operates two divisions, a harvesting division and a processing division. Currently, all of harvestings output is converted into cranberry juice by...
-
Required information The following Information applies to the questions displayed below] Simon Company's year-end balance sheets follow At December 31 points Assets eflook 10 Cash Accounts...
-
Figure 4-32 shows a class list for Millennium College. Convert this user view to a set of 3NF relations using an enterprise key. Assume the following: ¢ An instructor has a unique location....
-
Which of the following is not a functional budget? a) Labour budget b) Cash budget c) Materials budget d) Expenses budget Select one: a. Expenses budget b. Materials budget c. Cash budget d. Labour...
-
During 2 0 2 3 , Manfred, who is 6 0 years old and unmarried, provided all of the support of his elderly mother. His mother was a resident of a home for the aged for the entire year and had no...
-
Cross-cultural communication requires you to use clear language. Discuss two or more other challenges related to communicating across cultures, including how each might be overcome.
-
Flood control and management are critical aspects of civil engineering, particularly in regions prone to flooding due to factors such as heavy rainfall, river overflow, storm surges, and inadequate...
-
You have a friend who knows that you are studying Psychology in university. In a conversation you mention that you are doing a course on the History and Philosophy of Psychology. The friend tells you...
-
Assuming no friction, if a falling ball arrives at the floor with kinetic energy of 350 J, what is its elastic potential energy when the ball comes to a complete stop?
-
The following trial balance was extracted from the books of Pit Carpets Ltd on 31 December 2021 Debit Credit Land and buildings 600,000 Accumulated depreciation on land & buildings 129,000...
-
Suppose Green Network Energy needs to raise money to finance its new manufacturing facility, but their CFO does not think the company is financially capable of making the periodic interest payments...
-
You are evaluating a proposed expansion of an existing subsidiary located in Switzerland. The cost of the expansion would be SF 13.8 million. The cash flows from the project would be SF 4.1 million...
-
Suppose you have $1,000. Based on the rates in Figure 31.1, how many Japanese yen can you get? Alternatively, if a Porsche costs 100,000 (recall that is the symbol for the euro), how many dollars...
-
Here is a variation on the receivables collection period. How long, on average, does it take for Prufrock Corporation to pay its bills? To answer, we need to calculate the accounts payable turnover...
-
Sheds Ahead Ltd produces outdoor sheds for domestic use. The manager in charge of production has been asked to prepare a production budget, a direct materials budget and a direct labour budget for...
-
Gasmania Pty Ltd produces patio heaters for household use. The following information has been gathered so that a production budget, a direct materials budget and a direct labour budget for part of...
-
Sami Stitches Ltd produces two types of sewing machines, a standard model and a deluxe model. The budgeted factory overhead costs for the production operation during 2020 are as follows. Production...
Study smarter with the SolutionInn App