Answer:
ARPANET is the earliest version of the present-day Internet.
Explanation:
ARPANET is the type of network that is used before the Internet in the year 1967. It was advanced in the control of U.S ARPA(Advanced Research Projects Agency). After the year of 1980, it was given to the military network for the protection of the data network but after all, it is for the small area network and the Internet is the World Wide network.
To calculate percent of a total (i.e. calculate a percent distribution), you can use a formula that simply divides an amount by the total.
Note: you must format the result using the Percentage number format in Excel to see 25%, 10%, etc.
the reference to C11 is absolute (i.e. $C$11) so that it won't change when the formula is copied down the column.
As always in Excel, when you want to display a percentage, you need to use the Percentage number format, which will automatically display a decimal value as a percentage.
-dave bruns
Answer:
equations
this is the answer
[8:53 PM]
2) Create a button with label “true” , clicking on the button toggle the value from “true” => “false” and “false” => “true”.(edited)
techsith (patel) — 03/03/2021
3) Create a counter and a button. clicking on the button increments the counter by one. double clicking on the button resets the counter to 0
Answer:too many words ahhh
Explanation:
(assuming jsx)
function Buttons (props) {
return(
{props.counterValue}
counter
increment
reset
);
}
var counterValue = 1;
function addup(a){
if(counterValue + a <= 20){
counterValue += a;
} else if (counterValue + a > 20){
//do nothing
}
ReactDOM.render(
,
document.getElementById('root')
);
}
function reset() {
counterValue = 1;
ReactDOM.render(
,
document.getElementById('root')
);
}
Answer:
See Explaination
Explanation:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float input1, input2, input3;
float sum=0.0, avg, l;
cout<<"enter the value for input1: ";
cin>>input1;
cout<<"enter the value for input2: ";
cin>>input2;
cout<<"enter the value for input3: ";
cin>>input3;
sum=input1+input2+input3;
cout<<"sum of three numbers: "<<sum<<endl;
avg=sum/3;
cout<<"average of three numbers: "<<avg<<endl;
l=log2(input1);
cout<<"log2 value of input1 number: "<<l;
return 0;
}
output:
enter the value for input1: 4
enter the value for input2: 5
enter the value for input3: 6
sum of three numbers: 15
average of three numbers: 5
log2 value of input1 number: 2
Answer:
a. cout<<hidden(15,10)<<endl;
output = 5
b. cout << compute(3, 9) << endl;
output=3
c. cout << hidden(30, 20) << " " << compute(10, hidden(30, 20)) << endl;
output = 10
d. x = 2; y = 8; cout << compute(y, x) << endl;
output= 8
Explanation:
solution a:
num1= 15;
num2= 10;
according to condition 1, num1 is not greater than 20. In condition 2, num2 is also not greater than 20.
so,
the solution is
return num1 - num2 = 15 - 10 = 5
So the output for the above function is 5.
solution b:
as in function there are two integer type variables named as one and two. values of variables in given part are:
one = 3
two = 9
secret = one = 3
for (int i= one + 1 = 3+1 = 4; i<=9%2=1; i++ )
9%2 mean find the remainder for 9 dividing by 2 that is 1.
// there 4 is not less than equal to 1 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 3;
so answer return from the function is 3.
solution c:
As variables in first function are num1 and num2. the values given in part c are:
num1 = 30;
num2= 20;
According to first condition num1=30>20, So,
num1= num2/10
so the solution is
num1 = 20/10 = 2
now
num1=2
now the value return from function Hidden is,
return num1*num2 = 2* 20 = 40
Now use the value return from function hidden in function compute as
compute(10, hidden(30, 20))
as the value return from hidden(30, 20) = 40
so, compute function becomes
compute(10, 40)
Now variable in compute function are named as one and two, so the values are
one= 10;
two = 40;
as
secret = one
so
secret = 10;
for (int i= one + 1 = 10+1 = 11; i<=40%2=0; i++ )
40%2 mean find the remainder for 40 dividing by 2 that is 0.
// there 11 is not less than equal to 0 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 10;
so answer return from the function is 10.
solution d:
Now variable in compute function are named as one and two, so the values are
one = y = 8
two = x = 2
There
Secret = one = 8;
So
for (int i= one + 1 = 8+1 = 9; i<=2%2=0; i++ )
2%2 mean find the remainder for 2 dividing by 2 that is 0.
// there 9 is not less than equal to 0 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 8;
so answer return from the function is 8.
Answer:
The output is 20
Explanation:
This line divides the value of x by userVal
tmpVal = x / userVal;
i.e.
tmpVal = 100/5
tmpVal = 20
This line then prints the value of tmpVal
System.out.print(tmpVal);
i.e 20
Hence, The output is 20
The provided Java code checks if the variable userVal does not equal 0. As this is the case when userVal is 5, another variable tmpVal is assigned the value of another variable x (which is 100) divided by userVal. Hence, the output of the code would be 20.
In the given piece of code, the variable userVal is assigned a value of 5. The program also contains a variable x which is assigned a value of 100. An if statement checks whether userVal does not equal 0 - since 5 != 0, the condition is true. A new variable tmpVal is then declared and assigned the value of x divided by userVal, so tmpVal equals 100 / 5, which is 20. So, the output of this code when userVal is 5 would be 20.
#SPJ3