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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, carter1809
Choose the answers that best complete each sentence. on average, are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
image
Computers and Technology, 24.06.2019 10:20, Cobetate
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
image
Computers and Technology, 25.06.2019 05:30, genyjoannerubiera
In 3-5 sentences describe how technology business professionals to be more efficient. include examples of hardware and software
Answers: 1
You know the right answer?
Firstly,

add the following two lines to the definitions area:

(define str...

Questions in other subjects: