Please help. i need to do each number in a new coding box and i need to explain each step
1. Find the index of "lmno" in the English alphabet using an appropriate instruction and store it in a variable. (hint: you'll need to define a string that contains the letters of the alphabet in their proper order) 2. Find the length of "lmno" using an appropriate instruction and store it in a different variable. 3. Use those two variables to determine the index for the end of "lmno" within the alphabet and store that in a third variable. (hint: use math) 4. Use the two variables that are defined as indexes to get the corresponding slice of the alphabet and print it out using a format string. You may use any other variables you determine are necessary or helpful. Also, be sure to use comments as needed to explain what is taking place
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String[] args) {
String s1="abcdefghijklmnopqrstuvwxyz";
String s2="lmno";//searching string
int i1,i2,i3;//index1 && index2
i1=s1.indexOf(s2);//step1 finding indexOf "lmno"
string
i2=s2.length();//step2 finding length of string
i3=i1+i2;//step3 finding indexOf last Character
String temp=s1.substring(i1,i3);//step4 finding format
string
System.out.println(temp);
}
}
output

Please help. i need to do each number in a new coding box and i need...
I need help with my C coding homework. If possible can you
please comment to help me understand whats going on in the code.
Thanks in advance.
Create a C program (3 points): o At the top of the file include the following comments: Your name The purpose (core concept found below) of the program The date created o Create two int variables: Initialize each to different values. o Create three pointers: Point the first two pointers to the first...
In SAS coding, need serious
help.
The following character strings are the observations. Every string contains three types of information: STATE(NY or NJ), N(the number between the letters) and GROUP(A or B). Write a SAS code to create a data set named "string" containing four variables: STATE, N, GROUP and NEWN, in which NEWN = N*100 if GROUP= 'A' and NEWN = N*10 if GROUP= 'B'. (hint: use SUBSTR function to obtain STATE, N, and GROUP) NY113A NY15B NJ10A NY34A...
I need help with the following question Write a script based on the program in Exercise 11.13 that inputs several lines of text and uses String method indexOf to determine the total number of occurrences of each letter of the alphabet in the text. Uppercase and lowercase letters should be counted together. Store the totals for each letter in an array, and print the values in tabular format in an HTML5 textarea after the totals have been determined. I need...
u also need to store the letters' ASCII number in the freq
array
4. [8] Write a C function with prototype · void letter_freq(const char word[], int freq []); This function computes the number of appearances of each letter in the string word and stores them in array freq of size 26. The letters are the 26 letters of the Latin alphabet whose ASCII values are in the range 97-122 for the lower case letters, and in the range 65-90...
I need help programming this program in C. 1.) Write a program that reads a message, then checks whether it's a palindrome (the letters in the message are the same from left to right as from right to left), example is shown below: Enter a message: He lived as a devil, eh? Palindrome Enter a message: Madam, I am Adam. Not a Palindrome 2.) Ignore all characters that aren't letters. Use integer variables to keep track of positions in the...
I need eclipse code for : Write a program that analyzes text written in the console by counting the number of times each of the 26 letters in the alphabet occurs. Uppercase and lowercase letters should be counted together (for example, both ‘A’ and ‘a’ should count as an A). Any characters that are not letters should be ignored. You must prompt the user to enter the text to be analyzed. Then, for any letter that appeared at least once...
Need help with number 3 the last one
Need help with number 3
I have
already given the whole question
MATH 1030 – Application Assignment 3 Cryptography Due: Thursday, June 4, 2020 at 11:59pm Atlantic time (submit through Brightspace) You must show your work for full marks. The goal of this assignment is to use our knowledge of linear algebra to do cryptography. We will encrypt a plaintext using a cipher where the resulting ciphertext should not be legible unless...
I need Pseudocode Algorithm only, please Write a program that asks the user to enter the name of his or her favorite city. use a String variable to store the input. The program should display the following: The number of characters in the city name the name of the city in all uppercase letters the name of the city in all lower case letters the first character in the name of the city
i need python code, thank you very much!
characters) and prints ) 3. Write function, smallestCharacterLargerThan(keyChar, inputString) that takes as input key character, keyChar, and a string of one or more letters (and no other the "smallest" character in the string that is larger than keyChar, where one character is smaller than another if it occurs earlier in the alphabet (thus 'C is smaller than 'y' and both are larger than 'B') and 2) the index of the final occurrence...
I really need help with the code for this, in C++ please, I know there's a similar question but the answer isn't correct :[ A palindrome is a string that reads the same forwards and backwards (ignoring spaces, punctuation, and capitalization). Examples are the familiar ``If I had a hi-fi,'' the grander ``A man, a plan, a canal, Panama,'' and ``Some men interpret nine memos.'' So the goal: Design, implement, document, and test a program that reads a line of...