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 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
You know the right answer?
Firstly,

add the following two lines to the definitions area:

(define str...
Questions
Questions on the website: 13722367