Answer:
The answer is below
Explanation:
Computer System is widely known for its ability to perform its functions faster by giving out information.
The computer system operation follows certain principles, some of which are:
1. It makes use of the OPERATING SYSTEM to link the hardware and the software together, without it, the computer system is useless.
2. It works with INPUT DEVICES such as keyboards or stylus. Without input devices, there is no way humans can communicate with the computer system
3. It works with OUTPUT DEVICES such as monitors and speakers. Without output devices, there is no way computers can communicate or give back information to humans.
4. It works with the NETWORK such as LAN or WIFI to provides the sharing of data files to other users or computers. Without the network, the computer system can only work within certain spaces, with no way to share data or files with others far away.
You should have bullets in a text box in case you have a list of stuff. For example:
Computer Parts
.Tower
.Monitor
. Mouse
.Printer
You hack the atm that's how
Answer:
All functions were written in python
addUpSquaresAndCubes Function
def addUpSquaresAndCubes(N):
squares = 0
cubes = 0
for i in range(1, N+1):
squares = squares + i**2
cubes = cubes + i**3
return(squares, cubes)
sumOfSquares Function
def sumOfSquares(N):
squares = 0
for i in range(1, N+1):
squares = squares + i**2
return squares
sumOfCubes Function
def sumOfCubes(N):
cubes = 0
for i in range(1, N+1):
cubes = cubes + i**3
return cubes
Explanation:
Explaining the addUpSquaresAndCubes Function
This line defines the function
def addUpSquaresAndCubes(N):
The next two lines initializes squares and cubes to 0
squares = 0
cubes = 0
The following iteration adds up the squares and cubes from 1 to user input
for i in range(1, N+1):
squares = squares + i**2
cubes = cubes + i**3
This line returns the calculated squares and cubes
return(squares, cubes)
<em>The functions sumOfSquares and sumOfCubes are extract of the addUpSquaresAndCubes.</em>
<em>Hence, the same explanation (above) applies to both functions</em>
The answer is 'D', as obvious as it seems...