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 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
You know the right answer?
Firstly,

add the following two lines to the definitions area:

(define str...
Questions
question
Mathematics, 29.01.2021 01:20
question
Mathematics, 29.01.2021 01:20
question
English, 29.01.2021 01:20
question
Advanced Placement (AP), 29.01.2021 01:20
Questions on the website: 13722367