1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
olga nikolaevna [1]
3 years ago
6

We want to build a fence, but need to weigh the balance between the number of poles and the number of fence segments that we hav

e to buy. Write a function called FenceCalculator, that takes two scalar Inputs: L, the length of a fence needed and S, the length of one segment of fencing. Outputs: the number of fence segments needed and the number of poles to go with it. Note: that a segment can be cut shorter, but not longer. For example, to build a 75 m long straight fence using 10 m segments, we need 8 segments. prob09 [needed segments, needed poles]
Computers and Technology
1 answer:
Snowcat [4.5K]3 years ago
3 0

Answer:

def FenceCalculator(L, S):

   m = L % S

   if m == 0:

       segment = int(L/S)

   elif m < S:

       segment = int(L/S) + 1

   print(segment)

Explanation:

* The code is in Python

- Create a function <em>FenceCalculator()</em> that takes the length of a fence - L, and the length of one segment of a fence - S, as a parameter

- Get the module of the L respect to S

- If the module is equal to 0, then the segment amount is equal to the integer value of L/S

- If the module is smaller than S, then the segment amount is equal to the integer value of L/S + 1

- Print the segment

You might be interested in
Cell references in a formula are called _____.<br> a. assumptionsc. numbersb. valuesd. content
Airida [17]
It would bbe d because content is what is in something
7 0
3 years ago
Noah's document was very plain and would not catch the readers' attention. Select each item below that would make
Umnica [9.8K]

Answer:

1,2,3

Explanation:

4 0
3 years ago
What are village by laws​
melomori [17]

Explanation:

LAWS have long been familiar to the student of the English village. these regulations dealt mai ly with the open-field husbandry and pasture rights of ....

4 0
3 years ago
Imagine that you were hired to create the label for a new brand of soup. The client wants to emphasize that the soup has homemad
lidiya [134]

Answer:

Explanation:

For tools, I would simply use Adobe Photoshop to create the label/poster for the brand of soup. In order to make the poster or representation of the soup look homemade, I would place a picture of a kid drinking the soup at a kitchen table with a picture of the mom in the background kitchen. Then I would create a light yellowish tint in the image and steam coming from the soup bowl. This would help the brand represent a form of memory to a delicious homemade meal by a parent.

4 0
3 years ago
High-end tools in project management software have enterprise and _____ functions that summarize and combine individual project
e-lub [12.9K]

Answer:

Portfolio management  is the correct option.

Explanation:

Project management software is that type of software that is used to accomplish the management related works such as planning, organizing, summarizing and many other works related to the management.

So, project management software is used for functioning the enterprise and portfolio management functions by which the employee combines and summarizes project information.

8 0
3 years ago
Other questions:
  • Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shift
    5·1 answer
  • Amanda, a project manager, conducted a team meeting consisting of testing and development team. She insisted on clear communicat
    11·1 answer
  • For a loop counter, the appropriate data type would be:
    14·1 answer
  • The part of the computer that contains the brain, or the central processing unit, also knows as the
    5·1 answer
  • Suppose there are two hosts, S and R. They are communicating over a TCP connection, and R has already received from S al bytes f
    11·1 answer
  • When working on developing an ability, it is important to get feedback to know how you are doing.
    6·1 answer
  • What does a break statement do
    6·1 answer
  • Suppose that we are using PDDL to describe facts and actions in a certain world called JUNGLE. In the JUNGLE world there are 4 p
    7·1 answer
  • Choose and explain, step by step, one method of backing up student files either manually or using a cloud service.
    10·1 answer
  • 5. An external CSS file is saved with D. Answer the following questions. 1. Explain the purpose and advantages of using CSS.​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!