Answer:
something specific a person wants to achieve m8
Explanation:
Answer:
c to help build the internets infrastrucuter
Explanation:
It is called a Cooperative program
A Cooperative program refers to a combination of both academic study and vocational activities in one curriculum of education. The purpose of this program is to provide the students with both knowledge in theory and practical skills that make them more prepared in the real world.
Answer:
public class Main
{
public static void main(String[] args) {
System.out.println(starString(4));
}
public static String starString(int n){
double p = Math.pow(2,n);
String s = "";
for(int i=0; i<p; i++)
s += "*";
return s;
}
}
Explanation:
Create a method named starString that takes an integer parameter, n
Get the 2 to the nth power using pow method and set it to the p
Create an empty string that will hold the asterisks
Create a for loop that will iterate p times. Inside the loop, concatenate an asterisk to the s
Return the s
Inside the main method, call the method with an integer parameter