Answer:
3. alpha = {1, 5, 6, 7, 5}
Explanation:
Initially, we have that:
alpha[0] = 1;
alpha[1] = 2;
alpha[2] = 3;
alpha[3] = 4;
alpha[4] = 5;
For j higher than 2, we have that:
alpha[j - 1] = alpha[j] + 2;
So
j = 3
a[2] = alpha[3]+2 = 4 + 2 = 6;
j = 4
a[3] = alpha[4]+2 = 5+2 = 7;
The correct answer is:
3. alpha = {1, 5, 6, 7, 5}
Answer:
public static void PrintShampooInstructions(int numberOfCycles){
if (numberOfCycles<1){
System.out.println("Too Few");
}
else if(numberOfCycles>4){
System.out.println("Too many");
}
else
for(int i = 1; i<=numberOfCycles; i++){
System.out.println(i +": Lather and rinse");
}
System.out.println("Done");
}
Explanation:
I have used Java Programming language to solve this
Use if...elseif and else statement to determine and print "Too Few" or "Too Many".
If within range use a for loop to print the number of times
Answer:
the indexOf() method
Explanation:
The indexOf() method in java returns the first occurrence of the of the string or a character specified in it.It can be used to search both a character or a string.
for example:-
import java.util.*;
import java.lang.*;
import java.io.*;
class indexOf
{
public static void main (String[] args)
{
String s="IamNumber4";
int l=s.indexOf("Num");//using indexOf() method on string object..
System.out.println(l);
}
}
Output:-
3
Answer:
Site speed and usability.
Explanation:
Web pages are developed using web development tools like HTML, CSS, JavaScript etc. A collection of these web pages are called a website. The web is a hosted for internet use in a web server.
All requests for a website in a web server is done in a web browser in a client device. For a website to be easy searched for , the search engine optimisation technique is used.
A hosted website on a server must have a unique and usable domain name and the page loading on a browser should be made faster by optimising the size of the scripting language.
Answer:
Hi!
The answer to:
a. 6 bits.
b. 9 bits.
c. 26 bits.
Explanation:
a. For the states of the U.S.A, you need 50 or more combinations to represents each element.
<u>If you use 6 bits, the possible combinations are 2⁶ = 64. </u>
b. For days in a year, you need 365 or more combinations to represents each element.
<u>If you use 9 bits, the possible combinations are 2⁹ = 512.
</u>
c. For inhabitants of California, you need 36,457,549 or more combinations to represents each element.
<u>If you use 26 bits, the possible combinations are 2²⁶ = 67,108,864.</u> If you use 25 bits instead of 26, then you have 2²⁵ = 33,554,432 combinations. These possible combinations are not enough to represent each inhabitant.