Answer:
A subroutine is a block of statements that carries out one or more tasks. ... they share all variables with the rest of the main program. ... Once you have defined a function in your program, you may use it in any appropriate expression, such as: ... Thus, functions can- not change the values of the arguments passed to them.
Explanation:
Answer:
While we almost never get to see most of the cables, they power everything so it only makes sense that you should know what the different types of cables and wires are, so that you can pick accordingly and have your equipment, devices and appliances powered properly.
It is also important to identify cables and conductors for safety purposes, such as emergencies linked with electricity.
Answer:
filter
Explanation:
Some email programs let you use a filter to move incoming mail to a specific folder or to delete it automatically based on the content of the message.
The filter performs this role by either automatically deleting or moving to another location.
Most messages that are moved or deleted are unsolicited emails or spam messages.
Filtering of your mails helps so you ou can manage your incoming mail using filters to send email to a label, or archive, delete, star, or automatically forward your mail.
This is a way of organising your correspondence.
Answer:
Option B is the correct answer for the above question.
Explanation:
The control structure is a decision type structure which can be either true or false. It has two options-- If this then, does this otherwise do this. When the user wants to write he control structure then he can do this by the help of the following syntax in python language--
if(condition):
do this
else:
do this
The above question wants to ask about the concept which is used in the programming for a decision then the answer is control structure which is referred from the option B. Hence B is the correct option while the other is not because--
- Option A states about the flowchart which is the picture form of the instruction.
- Option C states about the pseudocode which is the language form of the instruction.
- The operator is also not the correct option because it is used to perform the operation.
Here you go,
import java.util.Scanner;
import java.util.Random;
public class OrderCalculator{
public static void main(String[] args){
float x, y, z, semi, area;
Scanner in = new Scanner(System.in);
System.out.print("Enter the 3 sides: ");
x = in.nextFloat();
y = in.nextFloat();
z = in.nextFloat();
semi = (float) ((x + y + z) / 2.0);
area = (float) Math.sqrt(semi * (semi - x) * (semi - y) * (semi - z));
System.out.printf("The area is: %.3f\n", area);
}
}