Answer:
An array is used for the storaging the paticular given size element that is either fixed or given by the user. However an vector is also used for storing purpose but the size of the table is assign automatically during the running time of the program or we say dynamic size assign to table.
Answer:
The function is as follows:
def concList(aList):
retList = ""
for i in aList:
if(str(i).isdigit()):
retList+=str(i)
else:
retList = "Not digits"
break;
return retList
Explanation:
This defines the function
def concList(aList):
This initializes the return string to an empty string
retList = ""
This iterates through aList
for i in aList:
This converts each element of the list to an empty list and checks if the string is digit
if(str(i).isdigit()):
If yes, the element is concatenated
retList+=str(i)
If otherwise
else:
The return string is set to "No digits"
retList = "Not digits"
And the loop is exited
break;
This returns the return string
return retList
True
Because operators are the symbols that show the action.Just like
2 + 5.
'+' is the operator and 2,5 is the operand.
Answer:
Pseudocode
////////////////////////////////////////////////////////////////////////////////////////////////////////////
Integer netElevation(list of elements of type elevation - type and number)
<em>function open</em>
Define running total = 0
for each element from list
<em>loop open</em>
elevation type = element[i].type
if (elevation type == Up)
running total = running total + element[i].number
else
running total = running total - element[i].number
<em>loop close</em>
return running total
<em>function close</em>
That's easy its called enter you can push enter and it will bring you to the next line so that's it good bye have a nice day