The student who uses macros for long words. They are most likely to pass words very easily because they have a macro. While not only saving time, also making a stunning performance as macros usually auto correct as well.
In your "count spaces method" before the for loop, you want to declare an int variable (let's call it spc)
then, each time you find that charat, spc++.
also, the string must be declared in the main method, not the spaces count method.
The actual code:
public class CountSpaces{
public static void main(String[] args){
String instring = "(your quote here)";
int spaces = calculateSpaces(instring);
System.out.println("The number of spaces is " + spaces);
}
public static int calculateSpaces(String in){
int spc = 0;
for(int i= 0; i<in.length; i++){
if(in.charAt(i)== ' '){
spc++;
}
}
return spc;
}
}
that should be it. If you have any questions, feel free to reach out.
Answer:
a button
Explanation:
I am not too familiar with HTML terminology (self-taught), but button (classes?) use hypertext links to access different locations on a website.
I'm pretty sure the syntax is something like <button = *stuff*>
Answer:
Platform as a Service (PaaS)
Explanation:
In cloud computing, PaaS called platform as a service refers to the provision of a computing platform for developers to create their own custom application. Other two categories of cloud computing are IaaS (Infrastructure as a service) and SaaS (Software as a Service). In the PaaS the servers, cloud storage and network are automatically handled by the platform only the software and application code are to be managed.
numApples = 10
numOranges = 3
print(f"Apples: {numApples}")
print(f"Oranges: {numOranges}")
The statements should assign numApples with 10 and numOranges with 3.
The code is written in python.
The variable numApples is used to assign the number of apples and numOranges is used to assign the number of oranges.
The number of apples and oranges were outputted with the print statement in python.
I used the f strings in python to concatenate strings and integers.
The bolded values in the code are python key words.
read more: brainly.com/question/13785329?referrer=searchResults