I believe the answer is C) <span>servers are used directly by computers, not by people
Have a good day! =)</span>
It is a class C address. Class C covers all addresses in the range 192.0.0.0 to 223.0.0.0. The /24 represents the number of network bits in the address so we can work out that the subnet mask of this address would be 255.255.255.0.
Answer:
- var projected_fee = 6000;
-
- for(var i = 1; i <= 5; i++){
- projected_fee = projected_fee * 0.02 + projected_fee;
- console.log("$" + projected_fee.toFixed(2));
- }
Explanation:
Firstly, create a variable, projected_fee, and set the initial tuition fee value to it (Line 1).
Next, user a for loop that run for 5 times to repeatedly calculate the projected_fee based on 2 percent of increment rate (Line 4) and display the projected fee to console terminal (Line 5). The output should be
$6120.00
$6242.40
$6367.25
$6494.59
$6624.48
Answer:
Following are the program to this question:
#include <iostream>//defining header file
using namespace std;
void squareOfAsterisks(int x) //defining method squareOfAsterisks
{
int i,j; //defining integer variable
for(i=1;i<=x;i++) //defining loop to print column value
{
for(j=1;j<=x;j++) //defining loop to print row value
{
cout<<"*"; //print value
}
cout<<endl; //for line break
}
}
int main() //defining main method
{
int x; //defining integer variable
cout<<"Enter any number: "; //print message
cin>>x; //input value from user
squareOfAsterisks(x); //calling the method and pass the value
return 0;
}
Output:
Enter any number: 4
****
****
****
****
Explanation:
The description of the above program can be given as follows:
- In the given program a method "squareOfAsterisks" is declared, that accepts an integer value "x" in its arguments, inside the method two integer variable I, j is used, that uses a to print the given pattern.
- In the main method, an integer variable x is declared, which takes input from the user end, and then calls the method, that is "squareOfAsterisks" and passes its value.