justinxvengance8442 justinxvengance8442
  • 17-02-2018
  • Computers and Technology
contestada

Given the string variable address, write an expression that returns the position of the first occurrence of the string "avenue" in address. submit

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 27-02-2018
string temp;

for i = 0 to Address.length - 6 do 
begin
     temp = copy(address, i, i + 6) //returns a substring of a string beginning at
                                                     //i and ending at i + 6 
     if temp = 'Avenue' then
          return i;
   
end;
Answer Link

Otras preguntas

The denominator of a fraction is greater than the numerator by 8. If the numerator is increased by 17 and denominator is decreased by 1, the number obtained is
Calculate the pressure under the following conditions. (g = 9.8m/s²) 12 cm 10 kg 14 cm 6 cm 10 kg 4 cm 12 cm​
How can you manafacture nanowire batteries?
Shawn Bixby borrowed $30,000 on a 150-day, 12% note. After 65 days, Shawn paid $3,300 on the note. On day 106, Shawn paid an additional $5,300. Use ordinary int
When an integer is subtracted from 7 times next consecutive even integer, the difference is 50. Find the value of the lesser integer
Which strategy does the speaker use to develop a central idea of "Money to Us Is of No Value"?
There are 20 circles and four triangles what is the simplest ratio of triangles to total shapes
What is the range of the following function? Y= 1/x+2 -1
can anyone help Find the value of x.
Suppose f(x) = 3x^2+7x+5