answer.
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
Serga
14 days ago
10

Supervisor: You will need to consolidate your trouble tickets

Computers and Technology
You might be interested in
The PictureBook class is a subclass of the Book class that has one additional attribute: a String variable named illustrator tha
Amiraneli [1052]

Response:

s

Clarification:

x

8 0
3 months ago
An aviation tracking system maintains flight records for equipment and personnel. The system is a critical command and control s
Harlamova29_29 [1022]

Answer:

offline backup solution

Explanation:

In this context, the ideal choice would be an offline backup solution. Essentially, this consists of a local, non-internet connected server that retains all the flight record information that is part of the cloud system. This backup server would receive updates regularly to ensure the data is current. The aviation firm would own these servers, which would serve as a fallback option should the cloud platform experience downtime or if access to the cloud service is hindered. Being offline enables the company to retrieve the database independent of internet issues.

5 0
2 months ago
The function below takes a single string parameter: sentence. Complete the function to return a list of strings that are in the
Rzqust [1037]

Response:

#section 1

def listofWordswitha(text):

   ''' This function outputs all words from a string that include the letter 'a' '''

   tex = text.split()

   new = []

#section 2

   for word in tex:

       for char in word:

           if char == 'a':

               new.append(word)

               

               break

   return new

Clarification:

#section 1

First, you need to establish your function and provide an argument representing the string that will be utilized.

It's beneficial to include a docstring that describes the function's purpose, which I've added.

Then, use the split method to break the string into a list. In conclusion, you create a list to store all the words that contain 'a'.

#section 2

The terminology chosen is specific to facilitate understanding.

FOR EVERY WORD inside the list and FOR EACH LETTER in the WORD.

IF a LETTER 'a' is found in the word, ADD that WORD to the NEW LIST.

The append function serves to incorporate new entries into the list.

A break statement is employed to avoid redundancy since some words might have multiple instances of 'a'. Thus, upon encountering a word containing 'a', it appends it and shifts to the next word.

Ultimately, the new list is returned.

I will utilize your inquiry to validate the code and provide the results for you.

4 0
2 months ago
This question involves the creation of user names for an online system. A user name is created based on a user’s first and last
Rzqust [1037]

Response:

Refer to the explanation

Clarification:

import java.util.*;

class UserName{

ArrayList<String> potentialNames;

UserName(String fName, String lName){

if(this.isValidName(fName) && this.isValidName(lName)){

potentialNames = new ArrayList<String>();

for(int j=1;j<fName.length()+1;j++){

potentialNames.add(lName+fName.substring(0,j));

}

}else{

System.out.println("firstName and lastName should only consist of letters.");

}

}

public boolean isTaken(String name, String[] array){

for(int j=0;j<array.length;j++){

if(name.equals(array[j]))

return true;

}

return false;

}

public void removeUnavailableUserNames(String[] takenNames){

String[] namesArray = new String[this.potentialNames.size()];

namesArray = this.potentialNames.toArray(namesArray);

for(int j=0;j<takenNames.length;j++){

if(isTaken(takenNames[j],namesArray)){

int idx = this.potentialNames.indexOf(takenNames[j]);

this.potentialNames.remove(idx);

namesArray = new String[this.potentialNames.size()];

namesArray = this.potentialNames.toArray(namesArray);

}

}

}

public boolean isValidName(String str){

if(str.length()==0) return false;

for(int j=0;j<str.length();j++){

if(str.charAt(j)<'a'||str.charAt(j)>'z' && (str.charAt(j)<'A' || str.charAt(j)>'Z'))

return false;

}

return true;

}

public static void main(String[] args) {

UserName user1 = new UserName("john","smith");

System.out.println(user1.potentialNames);

String[] existing = {"harta","hartm","harty"};

UserName user2 = new UserName("mary","hart");

System.out.println("potentialNames prior to removal: "+user2.potentialNames);

user2.removeUnavailableUserNames(existing);

System.out.println("potentialNames following removal: "+user2.potentialNames);

}

}

8 0
3 months ago
Other questions:
  • Your computer science teacher asks you to sample a black and white image that is 4" x 6". How would you sample the image to prov
    8·1 answer
  • Explain how abstraction is used in a GPS system
    12·2 answers
  • Splunk In most production environments, _______ will be used as the source of data input?
    12·1 answer
  • A technician with a PC is using multiple applications while connected to the Internet. How is the PC able to keep track of the d
    8·2 answers
  • Knowledge flows from the information that has been generated. Which of the following does not necessarily flow from information
    15·1 answer
  • This question involves a simulation of a two-player game. In the game, two simulated players each start out with an equal number
    7·1 answer
  • A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is true if the el
    10·1 answer
  • Access-lists pose a logical problem which often has more than one solution. Can you think of a different set of rules or placeme
    8·1 answer
  • CHALLENGE ACTIVITY 2.9.1: Coordinate geometry. Determine the distance between points (x1, y1) and point (x2, y2), and assign the
    6·1 answer
  • Write the execution steps if the input is a lion.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!