subject

Firstly,

add the following two lines to the definitions area:

(define str "helloworld")

(define i 5)

create an expression using string primitives that adds "_" at position i. in general this means the resulting string is longer than the original one; here the expected result is "hello_world".

position means i characters from the left of the string—but computer scientists start counting at 0. thus, the 5th letter in this example is "w", because the 0th letter is "h".

secondly,

use the same setup, create an expression that deletes the ith position from str. clearly this expression creates a shorter string than the given one; contemplate which values you may choose for i.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
You know the right answer?
Firstly,

add the following two lines to the definitions area:

(define str...
Questions
question
Physics, 22.03.2021 16:10
question
Mathematics, 22.03.2021 16:10
question
Mathematics, 22.03.2021 16:10
Questions on the website: 13722361