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, 21.06.2019 17:20
The liang book has an example called which is a javafx application that reads the javabook database using a preparedstatement object. using it as a guide, create a similar application called findbooks. it will read a list of authors from the bookdb created in problem 1 and display them in a listview. if the user selects an author, it should display the author's book titles in a textarea.
Answers: 2
question
Computers and Technology, 22.06.2019 13:00
Which option should u select to ignore all tracked changes in a document
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
You know the right answer?
Firstly,

add the following two lines to the definitions area:

(define str...
Questions
question
Chemistry, 23.10.2020 15:20
question
Mathematics, 23.10.2020 15:20
question
History, 23.10.2020 15:20