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:
The answer to this question is "information services and support and network system administration".
Explanation:
The information support and service and network system administration is used to outside work, which can be explained as follows:
- The information support and service process is using information processing that is defined as the system for record-keeping, forms, figures and data in a business.
- A network or device system administrators are responsible for the day-to-day deployment of all these networks. They arrange, restore, and promote the computer systems of the company, which include local area networks, WANs, system sections, web services, and other wireless communication systems. The system provides local area networks.
Answer:
concentration on the task
clarity of goals
reward in mind
immediate feedback
Explanation:
Answer:
1. C
2. A
Explanation:
IaaS which is also known as Infrastructure as a service is an outsourced cloud computing infrastructure service that offers resources such as storage, server, and network connections. Examples of IaaS providers include organizations like Microsoft’s Azure and Amazon Web Service which is also commonly known as AWS. Azure, AWS are among a list of IaaS providers that offer support through monitoring and management of remote datacenters. Instead of physically purchasing hardware and servers, businesses can opt to host all their services and operations on the cloud.
The PaaS falls between IaaS and SaaS. Most developers and programmers working for big cooperates rely on PaaS to help them code and provide cloud components to applications and software. PaaS makes all the phases of program development and deployment easier and cheap. It can manage what IaaS supports like storage, virtualization, servers, and network connections. In addition, PaaS providers can manage operating systems and databases as well. Note that it is the work of the developers to manage the applications and not the PaaS providers