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
Leto [7]
2 years ago
12

Lilyana has written the following function, but nothing happens when she runs her program. What has she forgotten to do?

Computers and Technology
1 answer:
Alex17521 [72]2 years ago
8 0

In this question, when Lilyana write a program to calculate the area, <em><u>she forgot to call the method</u></em> that's why it will not give any output. so, complete code with the output can be defined as follows:  

Program Explanation:

  • Defining a method "area" that takes two variables "length, height" in the parameters.
  • Inside the method, a variable "area" is declared that calculates the area by multiplies "length and width".
  • After calculating the area a return keyword is used that returns its value.
  • Outside the method, a print method is declared that calls the area method by accepting value into its parameters.

Program:

def area(length, height):#defining a method area that takes two parameters "length, height"

   area = length * height#defining a variable area that calculates the area by multiplies length and width

   return area#using return keyword that returns area value

print(area(6,8))#using a print method that calls area method by accepting the value

Output:

Please find the attached file.

Learn more:

brainly.com/question/8908120

You might be interested in
What does the internet engineering task force (IEFT) do?
Anvisha [2.4K]

The Internet Engineering Task Force is the premier internet standard body that defines standard internet protocols like TCP/IP. It is a large community that consists of operators, network designers, researchers and vendors drawn from the internet society’s individual and organization bodies and is concerned with the evolution and the smooth operation of the internet.

7 0
3 years ago
The fractional_part function divides the numerator by the denominator, and returns just the fractional part.
Alinara [238K]

Answer:

a. True

Explanation:

The fractional_part function divides the numerator by the denominator, and in turn returns just the fractional part, which is usually a number between 0 and 1.

When the denominator is 0, it produces an error result, instead of attempting the division, the function can be programmed to return "Math Error: cannot be divided by zero", as shown in the following Python code;

def fractional_part(numerator, denominator):

if denominator == 0:

 return "Math Error: cannot be divided by zero"

return (numerator % denominator)/denominator

6 0
2 years ago
What are four differences between tablets and smartphones?
Oksi-84 [34.3K]

Answer:

1. tablets are less portable than smartphones

2. smartphones are considered necessities and tablets are considered luxuries

3. smartphones are personal devices; tablets are usually shared

4. Tablets have larger screens for more extensive use of applications as opposed to the smaller, less versatile mobile phone screens.

8 0
2 years ago
Read 2 more answers
Use the drop-down menus to complete statements about archiving and backing up data fileArchiving data files manages the size of
svetoff [14.1K]

Answer:

Archiving data files manages the size of a mailbox for  

✔ local

storage.

Creating an Outlook data file  

✔ protects

data files in storage on a computer.

Explanation:

Because its right.

3 0
3 years ago
Read 2 more answers
It can be hard to get close enough to photograph animals in the wild true or false
marysya [2.9K]

Answer:

True

Explanation:

8 0
2 years ago
Read 2 more answers
Other questions:
  • "Server Manager will allow you to manage all roles and features installed on any server, and view the status of all your servers
    7·1 answer
  • Describe the Sign in process of an Email account.​
    6·1 answer
  • . _______ are the components that allow a posi-traction differential to transfer power from one drive wheel to another.
    10·1 answer
  • Which of the following statements is true of ASCII code?
    12·1 answer
  • Write a paragraph on the following topic.
    14·1 answer
  • HIPAA requires the following controls for medical records: A. Encryption of all data B. Technical safeguards C. Physical control
    12·1 answer
  • For this assignment, select one of the organizations with a prominent IT department from the Topic 1 assignment. Once identified
    11·1 answer
  • What channel does the news come on? <br><br> i dont have cable i have roku :\
    8·1 answer
  • What is the primary purpose of source code editor features such as keyword hi lighting and auto-completion A.to speed up the cod
    7·1 answer
  • 11 Select the correct answer. Which external element groups items in a design?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!