Answer:
//Code is created using java
import java.util.*;
// returns the sum
public int sum(int N)
{
if(N==1)
return (1);
else
return N+sum(N-1);
}
// code to return the Bipower ouput
public int BiPower(int N)
{
if(N==1)
return (2);
else
return 2*BiPower(N-1);
}
// Code to return TimesFive output
public int TimesFive(int N)
{
if(N==1)
return 5;
else
return 5 + timesFive(N-1);
}
public static void main(String args[])
{
//Prompts the user to enter a nonnegative integer
int N = Integer.parseInt.(console.readLine("Enter a nonnegative integer: "));
//Outputs the sum, Bipower and TimesFive
System.out.println(sum(n));
System.out.println(BiPower(n));
System.out.println(TimesFive(n));
}
}
The answer to the question you have asked is <u><em>"B" . </em></u> Because if you really think about it, there is no possible way that "Good" can be a keyword of "Hideous".
Answer:
c) 4.4
Explanation:
You can evaluate step by step the code. You know tha your input is 4.0
Step 1 Variables definitions:
double tax;
double total;
Step 2 Ask the user for the input:
System.out.print("Enter the cost of the item");
Step 3 read de input:
total = scan.nextDouble();
Step 4 evaluate the condition ( is the input greater or equal than 3.0 ? [True])
if ( total >= 3.0)
Step 5 get done the operations inside the condition and print it:
tax = 0.10;
System.out.println(total + (total * tax));
Answer:
connectionist
Explanation:
One of the key properties of a connectionist network is that a specific category is represented by activity that is distributed over many units in the network. This contrasts with semantic networks, in which specific categories are represented at individual nodes.