michicaLef michicaLef
  • 17-02-2017
  • 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.

Respuesta :

antonsandiego
antonsandiego antonsandiego
  • 23-02-2017
It depends on a language you code. I think this could be either C++ or Java. I know answer for both of them.
For C++:  address.find("Avenue")
For Java: 
address.indexOf("Avenue")
Answer Link

Otras preguntas

Suppose Ashley needs a dog sitter so that she can travel to her sister’s wedding. Ashley values dog sitting for the weekend at $200. Cami is willing to dog sit
Which of the following is not evidence of a country’s increasing economic development?
What is the major function of the president’s cabinet
Find the surface area of a triangle prism with 3 cm 4 cm 10cm and 5 cm in square centimeters
Inez believes that makeup is the most important part of her wardrobe. She spends considerable time comparing the prices, skin tones, and color options available
The average bulk resistivity of the human body (apart from surface resistance of the skin) is about 5.0 Ω⋅m. The conducting path between the hands can be repres
Please help me!!!!!!!!!!
x2 + 9x + 27 = 9 = x or x =
Multiply the polynomials (x+3)(2x - 4). What is the product in the form ax2 + b3 + c? Enter your answers in the boxes.
You have a small network at home that is connected to the internet. On your home network, you have a server with the IP address of 192.168.55.199/16. All comput