looks Theory and development of computer systems able to perform tasks that normally requires human intelligence
Answer:
The statement in python is as follows:
to_the_power_of(cube_side,3)
Explanation:
As stated as the requirement of the code segment, the statement takes as parameters a variable cube_side and a constant 3.
It then returns the volume of the cube; i.e. cube raise to power 3
<em></em>
<em>See full program below</em>
<em>def to_the_power_of(val,powe):</em>
<em> result = val**powe</em>
<em> print(result)</em>
<em>cube_side = float(input("Cube side: "))</em>
<em>to_the_power_of(cube_side,3)</em>
Answer:
import java.util.Scanner;
public class num6 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int product=0;
do{
System.out.println("Enter a number");
int num = in.nextInt();
product = num*10;
System.out.println("The product is " + product);
}while (product<100);
}
}
Explanation:
In the Java program above, The user will be prompted to enter a number.
The number is multiplied by 10 and assigned to a variable called product.
A do....while loop has been implemented to check the variable product
As long as this variable is less than 10, the user will be prompted to enter another number.
Answer:
D. A & C
Explanation:
In an inheritance situation, the new class that you create from an existing class is known as the derived class or child class. The class that the child class inherits from is called the parent class. Child class or derived class has access to all the public and protected fields and methods in the parent class. The child class in effect is extending the implementation of the parent class with additional functionality.