Write a public static void function named getLongestName. This function should be designed to take a String [] reference variable and use this to find the longest name in the array. Your function should then return this String. Make a call to this function in your main function passing it namesList at the actual parameter. Use the returned string so that you print out a meaningful message to the screen.
Q: Design greedy algorith please
A: Greedy Algorithm Greedy algorithm are the simple and straight forward they take decisions on the…
Q: What is UNIX's most efficient method of inter-process c
A: As given -in the question is given below - In this section, we are going to learn how to determine…
Q: head data data n data Allocate a single block of struct node memory using the memory allocation…
A: Here we have given a structure of a singly linked list. We are asked to allocate a single block of…
Q: 2. Provide a brief summary of the evolution of loT. (9)
A: As per the company guidelines, one question is answered at a time. Kindly post the remaining…
Q: Discuss the appropriate operating environment that is suitable for ABC system.
A: - Activity Based Costing (ABC) System is suitable as follows
Q: Why Do You Need an Application Program?
A: A computer software package known as an application, sometimes known as an application program or…
Q: What are some of the common misconceptions about software development among the general public, and…
A: What are some of the common misconceptions about software development among the general public, and…
Q: When can the phenomenon of multiple inheritance give rise to ambiguity? How can this problem be…
A: Ambiguity: Words or remarks that are unclear or confusing serve as the foundation for unintended…
Q: Take into account the significance of wireless networks in countries that are still in the process…
A: Intro A WLAN creates a wireless network (LAN) between two or more devices in a small space, such a…
Q: A high-end gaming PC's most power-hungry component is its graphics card.
A: 1) Graphics card is a hardware which is used to increase the video memory of a computer, and make…
Q: Explain cloud scalability. How does cloud computing grow?
A: Answer:
Q: Four major operating system functions should be listed.
A: OPERATING SYSTEM: The operating system is the communication channel between the user and the…
Q: You should look at the scheduling of threads in addition to comparing and contrasting the parallels…
A: Thread scheduling includes two varieties of limit schedules: Using the lightweight cycle, the…
Q: On the other hand, it has been suggested to design a processor that can decode encrypted data and…
A: All other components and data are managed and controlled by the control unit. Computer…
Q: Unit testing requires definition. What components of unit testing must be remembered?
A: When it comes to unit testing, covering all of the possible pathways is of the utmost importance;…
Q: What distinguishes a software environment from a hardware environment?
A: Introduction: A few examples of hardware include the chassis, central processing unit (CPU),…
Q: Identify and discuss two (2) benefits of using DIRECT DATA ENTRY devices in an organization
A: Introduction: Data-entry devices generate machine-readable data and feed it straight into the…
Q: On the other hand, it has been suggested to design a processor that can decode encrypted data and…
A: This is a problem that has been created by the software of the 1960s. People say they can achieve…
Q: Boost the capacity of the database management system?
A: Database Management System: Essentially, a database management system (or DBMS) is just a…
Q: Give me an in depth step by step explanation on how to solve this problem including a step by step…
A: Introduction: In this question, some code segments are given and we are asked to choose the correct…
Q: What are principles of event delegation model? Explain different sour event listener.
A: The question is what are the principles of event delegation model and explain different source event…
Q: Q3/ Find the Inverse of random Matrix (4 x 4)?
A: In this problem, we need to find the inverse of the 4x4 matrix. X = [1 0 2; -1 5 0; 0 3 -9]
Q: On a gaming computer with built-in video and an empty PCI Express video slot, the Windows 8…
A: A graphics card (also known as a video card, display card, graphics adapter, or display adapter) is…
Q: Talk about how processes and threads are scheduled, and compare and contrast the two concepts.
A: The answer of the question is given below
Q: The methods of software modeling and software development are separate. Describe how each individual…
A: The Software Development Methodology The segmentation of development activities into many phases is…
Q: On a gaming computer with built-in video and an empty PCI Express video slot, the Windows 8…
A: Introduction: A graphics card is a computer expansion card that transmits images to a display…
Q: What does "software and hardware environment" imply to you? What are they saying?
A: A few examples of hardware include the chassis, central processing unit (CPU), monitor, mouse,…
Q: Comparing software development to paper production is done in this comparison. How similar are they,…
A: By creating computer code, a software developer achieves the goal. However, it does include a lot of…
Q: Are there any legitimate questions that need to be answered by researchers in the area of software…
A: The discipline of computer science known as software engineering focuses on the planning,…
Q: Consider the importance of wireless networks in the nations of the globe that are still in the…
A: Wireless communications have enabled billions of individuals to access the internet and participate…
Q: As a designer, what are the various inputs and outputs that must be taken into account
A: Input is the unprocessed data that is used to generate output. Developers must consider input…
Q: What viewpoints should be taken into account while developing software system models?
A: Introduction : System modelling is a high-level design for the functions and looks of software. It…
Q: What is Garbage Collection, and why is it useful in Java?
A: Introduction: Java garbage collection: When Java applications are executed on the JVM, objects are…
Q: People who have come to a standstill due to the detection of deadlocks in their processes are given…
A: When a process or thread enters a waiting state because a requested system resource is being held by…
Q: Investigate the relationship between malware of all varieties and computer and network security. Is…
A: Introduction A user must protect the computer system against threats like viruses and unauthorised…
Q: What tasks does a data scientist perform? Is a certain level of education and experience required…
A: Data scientist: The major task of a data scientist is to examine significant volumes of data by…
Q: In the event of intentional computer damage, what security holes are exploited and how may these…
A: The term "data damage" refers to any reduction in the availability or integrity of the data. Three…
Q: What kind of connection exists between cohesion and coupling in the context of the design and…
A: Given: When an agency creates a piece of software, it describes how it will use different crucial…
Q: With the advent of high-level programming languages, it has become more prevalent in software…
A: High-level Programming language: Fortran was the first computer programming language, first tested…
Q: How would adopting a software testing mentality assist you in achieving your personal or…
A: Answer:
Q: What is the rationale for normalising first and then denormalizing?
A: Answer:
Q: UNIX's interprocess communication is the most efficient of all the operating systems.
A: Introduction: The pipe has long been the de facto standard for UNIX's process-to-process (IPC)…
Q: Is it possible to summarise, in a little amount of space, the fundamental goal of software…
A: Given: Can software engineering's goal be explained? Software engineering is to design scalable…
Q: Could you go into further detail about SQL?
A: Structured Query Language (SQL) is defined as a standard language which lets you access and…
Q: The scheduling of processes and threads should be compared and contrasted, so talk about how it…
A: An active programme, or one that is running, is referred to as a process: Among other things, it…
Q: What is the value of the postfix expression (180 6 2 7 +* 3 * -) 9 18 O 54 O 180
A:
Q: Conduct an in-depth comparison and analysis of the many methods that may be used to manage the…
A: Discuss processes and thread scheduling: Process vs. Thread comparison Thread is a section of a…
Q: Mention three benefits and drawbacks of ring topology.
A: To mention the benefits and drawbacks of ring topology.
Q: Give an example to describe how can this method be applied
A: This is very simple. 1) Cluster Analysis: Cluster analysis is the task of grouping a set of objects…
Q: In what ways are Internet and telephone systems fundamentally different?
A: Telephones and the Internet are very different, but both are now used to connect people in a…
Write a public static void function named getLongestName. This function should be designed to take a String [] reference variable and use this to find the longest name in the array. Your function should then return this String.
Make a call to this function in your main function passing it namesList at the actual parameter. Use the returned string so that you print out a meaningful message to the screen.
Step by step
Solved in 4 steps with 2 images
- Write a function that takes two string parameters and their common length. It fills out the second array with the capital form of the first parameter. Test your function in the main program.In this coding challenge, you will be retrieving email usernames from a string. You will write a function named get_usernames () that takes in a string as it's input parameter, and returns a list of email usernames in the string. The input strings will contain 0 or more emails in the format and the '@' symbol will only appear in the context of an email. The order of usernames should match the order in the input text. username@domainname, For example: EXAMPLE 1 text: "If you need help on an assignment, email help@ucsd.edu or support@gmail.com" return: ['help', 'support'] EXAMPLE 2 text: "Good morning! I hope you're having a great time with CSE 8A!" return: [] EXAMPLE 3 text: "I've been having a lot of trouble reaching you, can you please email me at cse@ucsd.edu? return: ['cse', 'cse'] Here is the problem description: Function Name: get_usernames Parameter: text - A string corresponding to a piece of text containing 0 or more emails. Return: A list of the email usernames in the input…Complete the rotate_text() function that takes 2 parameters, a string data and an integer n. If n is positive, then the function will shift all the characters in data forward by n positions, with characters at the end of the string being moved to the start of the string. If n is 0 then the text remains the same. For example: rotate_text('abcde', rotate_text('abcde', rotate_text('abcde', 1) would return the string 'eabcd' 3) would return the string 'cdeab' 5) would return the string 'abcde' rotate_text('abcde', 6) would return the string 'eabcd' ... and so on. If n is negative, then the function will shift the characters in data backward by n positions, with characters at the start of the string being moved to the end of the string. For example: rotate text('abcde', -1) would return the string 'bcdea'
- In C++ language For number 2 through 4 create an integer array with 100 randomly generated values between 0 and 99; pass this array into all subsequent functions. Place code in your main to call all the methods and demonstrate they work correctly. Using just the at, length, and substr string methods and the + (concatenate) operator, write a function that accepts a string s, a start position p, and a length l, and returns a subset of s with the characters starting at position p for a length of l removed. Don’t forget that strings start at position 0. Thus (“abcdefghijk”, 2, 4) returns “abghijk” Create a function that accepts the integer array described above returns the standard deviation of the values in a. The standard deviation is a statistical measure of the average distance each value in an array is from the mean. To calculate the standard deviation, you first call a second mean function that you need to write (do not use a built in gadget. Then sum the square of the difference…Write the convert_word code. convert_word is known as a function, which we will cover more in depth later. You are automatically given a parameter called word, which is a string that contains a single word. The return conv is how you will send data out of your function. The conv is a variable that hasn't been created yet, but it will be a string containing the converted hey. For example, if word="hey", then conv will be "heey". You are responsible for creating the variable conv, as the template has NOT done that for you. You need to use an if statement to see if the word starts with "he" and ends with "y". Since you don't know how many e's might be between the he and y, you have to do some math here. Recall that you can get the length of a string by using len(word) in the code above. You also know that h and y will be included. so, len(word) - 2 will be the number of e's in between the h and y. Create a string that contains the number of e's. This will be your conv variable. I would…Using C++ Write the section of code which takes an array of characters and copies it to another array of characters. At this point two arrays of characters should hold the same name. You will need to use one of the loop instructions to do this. You can't use any built in functions. Write a second section of code which concatenates two arrays of characters into a third array of characters. The first array (which holds the first name) will be copied into the third array and the second array (which holds the last name) will be concatenated onto the third array. Once you are done filling in the arrays you should output the two sentences below. You are given the example input and output below.Example Input: Input first name -> FredInput last name -> SmithExample output: Your first name is Fred and the copy of your first name is Fred. Your first name is Fred and your last name is Smith and the concatenation is FredSmith.
- Write a function called createTriangle that takes in a positive 1nt value and a char value (either u or d to indicate the triangle should be drawn either up or down), and displays the triangle. You are welcome to make your program handle uppercase input as well, but this is not required for this lab. Make sure that you write the createTriangle function prototype in drawtriangle.hpp and its implementation in drawtriangle.cpp, then and call from it inside of main.cpp. You'll find that skeleton code has already been provided and you simply need to call the function. Sample output #1 Enter the triangle height: 4 Enter 'u' or 'd' to indicate up or down: u Sample output #2 Enter the triangle height: 5 Enter 'u' or 'd' to indicate up or down: d ....For the struct that you created for the cars, write a function that changes all the “New” cars to have the colour “Blue”. In RACKETPunctuations are typically individual characters such as "1", "?", "." etc. that are also often not useful in text analysis. Write a function remove_punc(sentence, punctuation) which takes input parameters sentence (type string) and punctuation (type string), and returns a string that strips all trailing punctuations in sentence. Here, punctuations are NOT separated by a space, but they all should be removed. Also, you should not assume that punctuation would only contain the usual punctuations. For example: Test Result simple sentence = remove_punc("This is some, and \'I\" know it is a long one!", "?!.,") This is some and "I" know it is a long one print (simple sentence) simple sentence = remove_punc("This is some, sente.nce an,d "1\" know it is a long one!", ".,") This is some sente.nce an,d "I" know it is a long one! print(simple_sentence)
- Implement the following function which takes the radius of a circle as one of its parameters and stores the circumference and area using the other two parameters.void calcCircleInfo(int radius, int *circumference, int *area)add is a function that accepts two int parameters and returns their sum. Two int variables, euroSales and asiaSales, have already been declared and initialized. Another int variable, eurasiaSales, has already been declared. Write a statement that calls add to compute the sum of euroSales and asiaSales and store this value in eurasiaSales.Complete the process_name() function that takes a single string parameter name. You can assume that the name will always be in the format first name surname with a single space character between the first name and the surname. The function returns a string consisting of the first letter of the first name followed by the first three letters of the surname. All of the characters in the returned string should be in lowercase. Some examples of the function being used are shown below: For example: Test Result print(process_name("Damir Azhar")) dazh print(process_name("Ann Cameron")) acam Answer: (penalty regime: 0 %) Reset answer 1v def process_name (name): 2