Answer:
Its outfile<<number.
However, before this we need to write
outfile.open("xyz.txt", ios;;out)
outfile<<number
And this code will do what is required in the question. This is going to write the number's content to the xyz.txt file which is the file associated with the outfile.
And remember this is in C++. And C++ is a imperative oriented programming language. Undoubtedly, Python and R are fully object oriented programming languages.
Explanation:
The answer is self explanatory.
Answer:
Import java.awt.*;
import java.util.*;
public class Sprhere
{// Instance Data private double surfaceA, volume, r, diameter; //Constructors public Sphere ()
{r = 0;diameter = 0; surfaceA = 0;volume = 0;}
public Sphere (double radius, double d, double SA, double v)
{this. r = radius; this. diameter = d; this. surfaceA = SA;this.volume = v;}
//--------------------------------------------------------------------// Accesors.//--------------------------------------------------------------------public double get Radius()
{return r;}
public double get Diameter()
{return diameter;}
public double get SurfaceA()
{return surfaceA;}
public double get Volume()
{return volume;}
//--------------------------------------------------------------------// Mutators.//--------------------------------------------------------------------
Define variables
left is l
right is r
Ask input
left or right
Ask input value
Equate l or r to the input value
Show ladder with steps equal to input value and in the side of input variable
Answer:
40
Explanation:
Given that:
A neural network with 11 input variables possess;
one hidden layer with three hidden units; &
one output variable
For every input, a variable must go to every node.
Thus, we can calculate the weights of weight with respect to connections to input and hidden layer by using the formula:
= ( inputs + bias) × numbers of nodes
= (11 + 1 ) × 3
= 12 × 3
= 36 weights
Also, For one hidden layer (with 3 nodes) and one output
The entry result for every hidden node will go directly to the output
These results will have weights associated with them before computed in the output node.
Thus; using the formula
= (numbers of nodes + bais) output, we get;
= ( 3+ 1 ) × 1
= 4 weights
weights with respect to input and hidden layer total = 36
weights with respect to hidden and output layer total = 4
Finally, the sum of both weights is = 36 + 4
= 40
Answer:
console.log(Animal);
Explanation:
The statement written above prints the array Animal which contains objects.There are two to three ways to print the array Animal in javascript. One of the method is written in the answer it prints the arrays in the console of the browser.
You can go to the console by pressing F12 and then clicking on the console.
Other methods to print are
- Simple write Animal after defining the array.
- Use alert.
- document.write()