Basically, the array[ index ] is the name of the object so when you populate the array you'd have statement[s] like:
array[ index ] = new ClassName( arg0, arg1, arg2 );
To find a relatively broad unbiased overview of a subject in a specific field of study, it would be best to consult a: encyclopedia.
This code attempts to fuse two strings together. So,
fuse("Apple", "Banana")
would return "ABpapnlaen a"
However, there are a couple of things wrong with this code:
- The for loop is incomplete (probably a copy paste error)
- It is unclear from the code if the array jawaban will overflow if kata1 and kata2 are large (it probably will)
- Biggest problem: the jawaban array is declared on the stack, which means it will be cleaned up when the function returns. So the caller of this function will reference unallocated memory! This is a huge bug!!
def replace_at_index(txt,ind):
new_txt = ""
for x in range(len(txt)):
if x == ind:
new_txt += "-"
else:
new_txt += txt[x]
return new_txt
s = replace_at_index("eggplant", 3)
print(s)
I wrote my code in python 3.8. I hope this helps.
Answer:
The steps to create table, hide boarder and show border around the whole table is given below.
Explanation:
<u>1. Create Table</u>
- Click on insert Tab
- In insert tab, Click on Table
- Select No. of row and columns to create the table
<u>2. Hiding Boarders</u>
- Click on Design Tab
- In table style section Choose the layout that have no boarder
<u>3. Add boarder Around table</u>
- Click on Design Tab
- Select whole table by clicking on Plus sign on the top right corner of table
- Click on arrow of boarders button in Boarders section in design tab
- Select the "outside boarder" option from the list
<em>By following above mentioned steps, jennnine can draw a boarder around the table to distinguish it from rest of the document.</em>