Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b. Imagine that a tile manufacturer has commissioned you to solve the following problem. order of tiles, compute the total weight of the tiles in

image text in transcribed
image text in transcribed
b. Imagine that a tile manufacturer has commissioned you to solve the following problem. order of tiles, compute the total weight of the tiles in that order (in grams). The tile manufacturer receives orders that specify: the number of tiles that are required instance, the order may specify o the surface dimensions (in cm) of the tiles in this order. For instance, the order tiles with a surface of 10 cm by 20 cm. All tiles in an order have the same surface dimensions (and the tile depth or thickness is the same for all tiles and can be Assume that a tile with a surface of 1 cm by 1 cm weighs 10 grams. In answer to this question you will need to decompose the problem, write an algonom implement the algorithm as a single python function that returns the total weight on the we given a specific order. i. Include your initial decomposition of the problem in your solution document. ii. Include the algorithm for solving the problem in your solution document. is question involves writing one Python function definition. The download folder for MA contains the file (4_OUCU.py (go to TMA02 - Python files ). Download the file and change OUCU to your OUCU number. Then open the file and inspect its contents. Write your Python function definition for total weight in this file where indicated. Note that the file already contains code for automatically testing the function total_weight(). You learned about automatic testing of functions in Block 2 of Part 2. When you have completed your work on this question, in answer to Part iii: submit the .py file with your function (following the instructions provided above) and copy all the contents of your .py file as text (with indentation preserved) into your solution document iii. Provide a Python function that implements the algorithm. Follow the instructions above fo submitting code. Your answer must be a translation of your algorithm from part b (ii), otherwise no marks will be awarded. 110 b. Imagine that a tile manufacturer has commissioned you to solve the following problem. order of tiles, compute the total weight of the tiles in that order (in grams). The tile manufacturer receives orders that specify: the number of tiles that are required instance, the order may specify o the surface dimensions (in cm) of the tiles in this order. For instance, the order tiles with a surface of 10 cm by 20 cm. All tiles in an order have the same surface dimensions (and the tile depth or thickness is the same for all tiles and can be Assume that a tile with a surface of 1 cm by 1 cm weighs 10 grams. In answer to this question you will need to decompose the problem, write an algonom implement the algorithm as a single python function that returns the total weight on the we given a specific order. i. Include your initial decomposition of the problem in your solution document. ii. Include the algorithm for solving the problem in your solution document. is question involves writing one Python function definition. The download folder for MA contains the file (4_OUCU.py (go to TMA02 - Python files ). Download the file and change OUCU to your OUCU number. Then open the file and inspect its contents. Write your Python function definition for total weight in this file where indicated. Note that the file already contains code for automatically testing the function total_weight(). You learned about automatic testing of functions in Block 2 of Part 2. When you have completed your work on this question, in answer to Part iii: submit the .py file with your function (following the instructions provided above) and copy all the contents of your .py file as text (with indentation preserved) into your solution document iii. Provide a Python function that implements the algorithm. Follow the instructions above fo submitting code. Your answer must be a translation of your algorithm from part b (ii), otherwise no marks will be awarded. 110

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

Students also viewed these Databases questions

Question

Define small group communication.

Answered: 1 week ago

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago