Answer:
private void printArray(int[] arr){ //0
System.out.print("["); //1
for(int k : arr){ //2
System.out.print(k + ", "); //3
}
System.out.println("]"); //4
}
Explanation:
This method should get you started. Your teacher may want a different format or a different type of loop. If you haven't learned for loops yet don't use them that'd be suspicious ;)
What I did:
0: This is the method heading with one parameter for the 1D array. If you need to access it in a different class change private to public.
1: This prints the [ with no line break
2: This is an enhanced for loop to iterate through each element in a 1D array. Alternatively, a normal for loop looks like this:
for (int i = 0; i < arr.length; i++)
instead of retrieving the variable with the enhanced for, you'd have to use arr[i] instead of k in this scenario.
3: This prints the value in each pass of the loop along with a comma and a space.
4: This adds the ] with a line break when the loop is completed
Hope this helps you get started :D comment if you need further help
Answer:
To be distinguished from the physical or hardware components of a computer, programs are collectively referred to as software. A computer system, therefore, is a computer combined with peripheral equipment and software so that it can perform desired functions.
A computer is a device that does certain things (mostly very basic data manipulation and mathematical functions), just as a building is a device that does certain things (such as housing offices or apartments). What makes a computer special is that it does these things very very quickly. A computer system is a mechanism that incorporates multiple computers along with other things like data storage devices, networks, and data paths (ways to move data around among storage devices and computers), as well as software (rules for how to do things), procedures and processes and protocols and on and on. A computer system performs a rather complex function, just as a city is a system that involves multiple buildings along with roads, sewage treatment plants, water and electrical systems and many other things that enable it to perform a function considerably more complex than the function performed by a building.
A major advance in the field of computing was the advent of networking. Before that, computers had to be near each other in order to communicate with each other and computer systems typically existed in a relatively small physical location where all the computers were in the same place. If you see a movie released in the period from roughly 1950 to 1980, you will note that computers and computer systems were typically depicted as gigantic things located in a large room. With networking, a computer system might have computers in one place, remote access devices in another place, and other computers in other places. Thus a building might have computers and terminals and printers and what have you all over it, all capable of communicating with each other. The internet, which enables world wide networks, has made it possible to have computer systems that consist of thousands of computers (or more), located all over the globe.
a computer is like an engine whereas a computer system is like a vehicle (a car or truck or boat) that contains one or more engines and does something more complex than what the engine does. But the engine is the essential component that enables the vehicle to do what it does. a computer exists in a single place and does a primitive set of functions. A computer system combines a computer with many other things to perform a complex set of functions. It can also exist in a single place, but it may exist in many places at the same time.
Explanation:
Pleeeeeeeeeeeeeeeeeeez mark me as brainliest i did this so hardly so plez i beg u and cry to mark me as brainliest and give a vote of full and give a thanks
Answer:
they got destroyed
Explanation:
whenwhen Moses came back from the mountain was angry when he saw the people worshipping Idols who threw down the tablets and broke them
Answer:
strcmp() is a built-in library function and is declared in <string. h> header file. This function takes two strings as arguments and compare these two strings lexicographically.
Explanation:
Hope it helps