Using the computer language in python to write a function code that calculates the area of a rectangle.
<h3>Writting the code in python:</h3>
<em>def rectangle_area(base, height):</em>
<em> z = base*height # the area is base*height</em>
<em> print("The area is " + str(z))</em>
<em>rectangle_area(5,6)</em>
See more about python at brainly.com/question/18502436
#SPJ1
Answer:
Following are the program definition in the Java Programming Language.
//define a class
public class Clock
{
//set integer type variable and initialize value
private int hours=12;
//set boolean type variable and initialize value
private boolean isTicking=true;
//set integer type variable and initialize value
private Integer diff=5;
}
Explanation:
Following are the description of Code.
- Firstly define a class "Clock" with the "private" access modifier.
- Then, set the integer data type variable "hours" with the "private" access modifier and assign value 12 in that class.
- After that, set the boolean data type variable "isTicking" with the "private" access modifier and assign value "true".
- Finally set Integer class variable "diff" with the the private access modifier and assign value 5.
Abcdefghijklmnopqrstuvwxyz now I know my abcs, next time won’t you sing with me :)
The steps I would take are 1. Making a strong password with symbols and numbers. 2. I will set up a 2 way authentication ther for if someone would be trying to hack me I would get an alert in order to stop the attempt. 3 I will not use the same password each time.
Answer:
My Favorite film is The Old Guard
Explanation:
I like The Old Guard because it has action an etc.