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
The three items that can be enhanced due to the embedded computer technology are
Digital cameras
Smart phones
Home appliances
There is a massive list of items that are enhanced due to embedded computer technology. They range from simple systems like calculators, digital cameras, mobile phones, home appliances, to advanced systems like control nuclear power plant systems. All these items mentioned are always set to perform a particular function. They allow integration of various operating systems and are built to take advantage of miniature software or hardware state of electronic devices. Items such as smart phones have been enhanced and designed for power efficiency. They have taken advantage of embedded computing technology and do not come with heavy moving components like fans and huge processors. The same case applies to Digital cameras and Home appliance. Embedded computers in heavy equipment such as a washing machine cannot be compared to computing technology in a digital Panasonic camera.
<span>Write a program that prints ‘Hello World’ to the screen.Write a program that asks the user for her name and greets her with her name.Modify the previous program such that only the users Alice and Bob are greeted with their names.<span>Write a program that asks the user for a number n and prints the sum of the numbers 1 to n</span><span>Modify the previous program such that only multiples of three or
five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17</span><span>Write a program that asks the user for a number n and gives him the possibility to choose between computing the sum and computing the product of 1,…,n.</span>Write a program that prints a multiplication table for numbers up to 12.<span>Write a program that prints all prime numbers. (Note: if
your programming language does not support arbitrary size numbers,
printing all primes up to the largest number you can easily represent is
fine too.)</span>Write a guessing game where the user has to guess a secret number.
After every guess the program tells the user whether their number was
too large or too small. At the end the number of tries needed should be
printed. I counts only as one try if they input the same number multiple
times consecutively.<span>Write a program that prints the next 20 leap years.</span></span>