Question: //this function will ask the user for a word then will call a //function to manipulate and change that word function start(){ //declare and initialize

//this function will ask the user for a word then will call a //function to manipulate and change that word function start(){ //declare and initialize our variable //I will be using readLine because I want a String/symbols var word = readLine("Give me a word: "); //first method is charAt(position) //where position is an int value //the computer starts counting at 0 println(word.charAt(3)); //.length starts counting at 1 //so we have to be careful //make sure you subtract something from the length println(word.charAt(word.length-1)); } //--------------------------------------------------------------------- //this function will output the first character of your word function first(){ } //--------------------------------------------------------------------- //this function will output the last character of your word function last(){ } //--------------------------------------------------------------------- //this function will output true if the character you pick is in //your word function find(){ } //--------------------------------------------------------------------- //this function will output your word in reverse function reverse(){ }

//this function will ask the user for a word then will call

Hi there I want to complete this assignment using the code above and the instruction in the picture.

Aanipulating Strings Due: Thursday, March 2, 2023 at 11:59 pm For this assignment I would like you to explore how to manipulate Strings. Using the methods we covered in class I want you to complete the follow code. This should work for any String input you use in class. / /his function will ask the user for a word then will cail a /function to manipulate and change that word. function start() \{ //declare and initialize our variable /II will be using readine because I want a string/symbols var word = readtine ("Give ine a word: "); /Ifirst method is charat (position) /Where position is an int value / the competer starts counting at o printin(word.charat (3)); 1/. Ienoth starts count1ng at 1 // / so we have to be careful //iake sure you subtract sonething from the length printlin(word charat (word, length-1))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!