1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nalin [4]
3 years ago
13

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

in address. submit
Computers and Technology
1 answer:
MrMuchimi3 years ago
8 0
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;
You might be interested in
Create a web page that uses JavaScript to print a payroll report for a company that has a few employees, all earning the same ho
zhenek [66]

Answer:

  1. let employee1 = {
  2.    Name : "Kate",
  3.    Hour : 38,
  4. };
  5. let employee2 = {
  6.    Name : "John",
  7.    Hour : 45,
  8. };
  9. let employee3 = {
  10.    Name : "Catherine",
  11.    Hour : 40,
  12. };
  13. let employeeArr = [employee1, employee2, employee3];
  14. let payrollRef = document.getElementById("payroll");
  15. let output = "";
  16. for(let i = 0; i < employeeArr.length; i++){
  17.    let h = employeeArr[i].Hour;
  18.    let pay;
  19.    if(h <=40){
  20.        pay = h * 15;  
  21.    }else{
  22.        pay = 40 * 15;
  23.        pay += (h - 40) * 15 * 1.5;
  24.    }
  25.    output += "Employee Name: " + employeeArr[i].Name + "<br>";
  26.    output += "Total working hour: " + employeeArr[i].Hour + "<br>";
  27.    output += "Total pay: $" + pay + "<br>";
  28.    output += "<hr>"
  29. }
  30. payrollRef.innerHTML = output;

Explanation:

Presume there is a div element with id "payroll" in a html file. We can write a JavaScript to create a payroll report and place the output to the div.

In JavaScript, let's presume there are only three employees and their names and total working hour are recorded in three objects (Line 1 - 14). Next, we put those employee objects into an array, employeeArr (Line 16).

Next, create a for loop to traverse through each object from employeeArr and calculate the pay based on their working hour (Line 22 - 31).

Next, generate the output string which includes employee name, working hour and total pay (Line 33 -36).

At last,  set the output string as the contents payroll (Line 39).

3 0
3 years ago
What does it mean to say that there is a relationship between two tables?
NeTakaya

Answer:

Definition

Explanation:

A database relationship is a situation between two relational database tables when one table has a foreign key that refers to the other table's primary key.

Relationships allow for the separation and storing of information in different tables when connecting disparate data objects.

4 0
3 years ago
Edhesive 6.3 question 1
hjlf
Is there supposed to be a picture?..
3 0
3 years ago
Aldhurst Corp., a software manufacturing firm in the country of Lochmount, bought Fairden Corp., a software manufacturing firm i
Liono4ka [1.6K]

Answer:

The answer is "Foreign direct investment".

Explanation:

An investment is also known as the course with either activity or indeed the acquisition of corporate assets within a continent, It is just the form of contract, regulate or influence of foreign powers, in one nation by a firm and/or an ordinary person.

  • It is essential for developing nations and economies.  
  • It needs to have the financial support and knowledge for corporations to expand their foreign sales.
6 0
3 years ago
A _________ operates as a standalone device and is shared by multiple users
Orlov [11]
A network printer. that is the correct answer
5 0
3 years ago
Other questions:
  • A network administrator wants to have the same network mask for all networks at a particular small site. The site has the follow
    11·1 answer
  • Which one of the following provides an authentication mechanism that would be appropriate for pairing with a password to achieve
    13·1 answer
  • What is the best definition of the 7x7 rule for maximizing audience comprehension
    13·1 answer
  • What feature of virtualization software allows you to revert to a previous point in time in the event you make an unrecoverable
    9·1 answer
  • Eric is working on a computer that has a device driver error. Eric can find the name of the device driver however the actual dev
    13·2 answers
  • Beth accidentally clicked Send on a message that was addressed to multiple recipients. She wants to use the recall option. Which
    15·1 answer
  • A communication medium that carries a large amount of data at a fast speed is called
    6·1 answer
  • WILL MARK BRAINILY!!
    9·2 answers
  • Define and use in your program the following functions to make your code more modular: convert_str_to_numeric_list - takes an in
    10·1 answer
  • Digital publishing software has increased the use of which of the following?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!