Answer:
i have no idea what the answer is
Explanation:
Answer:
Variable, operator, expression, value.
Explanation:
We could use variables, operators, expressions, and values in a mathematical formula, we're going to do an example with every part.
For this example we're going to use a simple sum formula:
First, we have 3 variables:
sum;
sum1;
sum2;
Second, we have 3 operators:
=, + and *
Third, we have our expression and 1 value:
sum = sum1 + (sum2 * 5);
(sum2 * 5) = expression;
5 = value;
We're going to see the result when we print the variable sum.
Answer:
The program in Python is:
Area = float(input("Area: "))
print("Gallons: "+str(Area/350.0))
Explanation:
The requirement of the program is straightforward and what is required is to divide the inputted area by 350.
Hence, the explanation is as follows:
This line prompts user for Area
Area = float(input("Area: "))
This line calculates and prints the equivalent number of gallons
print("Gallons: "+str(Area/350.0))
Answer:
nsLookup mycompany.com
Explanation:
Start a DOS command window. To do that, click Start, click Run, type cmd, and later press Enter.At the command prompt, copy the following command. Substitute example.com with the domain that you need to examine:
"nsLookup mycompany.com"
Answer:
// program in java.
// package
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read input
Scanner scr=new Scanner(System.in);
// string array
String name[] = new String[3];
// price array
double price[] = new double[3];
// variable
double sum = 0,avg;
boolean flag = false;
// read three name and their price
for(int i=0;i<3;i++)
{
System.out.print("Enter item "+(i+1)+" name:");
name[i]=scr.next();
System.out.print("Enter item "+(i+1)+" price:");
price[i]=scr.nextDouble();
sum=sum+price[i];
// if any name is "peas"
if(name[i].equalsIgnoreCase("peas"))
flag = true;
}
System.out.println("Name and their price:");
for(int i=0;i<3;i++)
{
System.out.println(name[i]+":"+price[i]);
}
// if flag is true
if(flag)
{
// calculate average
avg=sum/3;
// print average
System.out.println("Average price is:"+avg);
}
else
System.out.println("no average output");
}catch(Exception ex){
return;}
}
}
Explanation:
Read three name and their price from user.If any name is equal to "peas" without case sensitive then find the average of three price and print the average.If their is no name equal to "peas" then print "no average output".
Output:
Enter item 1 name:apple
Enter item 1 price:20
Enter item 2 name:kiwi
Enter item 2 price:15
Enter item 3 name:banana
Enter item 3 price:20
Name and their price:
apple:20
kiwi:15
banana:20
no average output