Can you help me with this program?  In Java! Define a two-dimensional array of names. For each row: • specify the name with the longest length • check for a name starting with "A" (save its index) Save the results in one-dimensional arrays (initialize all elements of the second result array with -1 initially). Display an array of names, the names with the longest length of each line, and the name starting with "A" from each line or a message that there is none.

Question

Can you help me with this program? 

In Java!

Define a two-dimensional array of names.

For each row:

• specify the name with the longest length

• check for a name starting with "A" (save its index)

Save the results in one-dimensional arrays (initialize all elements of the second result array with -1 initially).

Display an array of names, the names with the longest length of each line, and the name starting with "A" from each line or a message that there is none.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Java

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Computer Science Question

A: Actually, java is a object oriented programming language. It is a platform independent.

Q: What code would you use to create a style sheet to specify 30-point blue arial heading and all other...

A: <style>h1{color: blue;font-size: 30px;font-family: Arial;}p {  line-height: 2;  color: blue;  ...

Q: Subject:Database

A: T1                               T2                                       T3 Lock-X(B)Read(B) B=B-50...

Q: Write a c++ program to calculate the answer of a quadratic equation. Take necessary inputs from the ...

A: Program approach: The quadratic equation is is given by Ax2 + Bx + C = 0  Read in the input values ...

Q: Were locations A-M adequate, or did you need a larger sample to find the patterns?

A: Yes

Q: python question, where i did wrong??? i couldn't find problem

A: def main   main

Q: Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Re...

A: /File: ValidateCheckDigits.java import java.io.BufferedWriter; import java.io.File; import java.io.F...

Q: (Airplane Seating Assignment) | Write a program that can be used to assign seats for a commercial ai...

A: #include<iostream> #include<cctype> #include<iomanip> using namespace std; void ge...

Q: using simple loop  IN C++ Write a program that takes 10 character type input from user. In the end, ...

A: #include <iostream> using namespace std; int main(){    //accept the 10 chars    cout <<...

Q: Lmat that w all OL SP De int[] list = {-2, 8, 13, 22, 25, 25, 38, 42, 51, 103}; This would construct...

A: Actually, array is an collection of elements.

Q: ) In order to communicate between devices inside a computer. A wire routing scheme is needed such th...

A:                         A bus is a shared connection for communication. To link multiple subsystems...

Q: Write a program that prompts the user to enter 50 integers and stores them in an array. The program ...

A: Program Plan:- 1. Initialise all the required header files. 2. declare the array of 50 numbers. 3. a...

Q: Question-3 There are n number of students in a class. Assume a teacher enters and wants to shake han...

A: Solution is in Step 2.

Q: Subject:Database

A: Objective: A relation R (A,B,C,D,E,F,G,H) is given. We need to convert this functional dependency up...

Q: Today's PCs have many different connections. In order to input information and have corresponding in...

A: Actually, computer is a electronic device. Which takes input and gives output.

Q: Solve this problem

A: Actually, java is a object oriented language. It is a platform independent.

Q: The Code must be in Matlab

A: x = input('Input the value of x : ');if(x<1)    y = log(1./(1-x));    disp('Calculated value is :...

Q: Describe a utility-based agent for an autonomous delivery robot. You must describe thefollowing for ...

A: As per the policy, we can answer only the first three subparts, so answers are below- How the utilit...

Q: Binary Tree Concepts 1.) Introduce a maximum priority queue using a.) A binary-tree based heap. Not ...

A: Program Plan:- 1. Initialize all the required header files. 2. Define all the required functions for...

Q: please provide some explanations to help me understand the topic.

A: CFG is the short form of Context Free Grammar. It is used to generate all possible patterns of the s...

Q: A set of ten BCD readings is stored in the ML 2050H. Write an ALP for 8085 to convert the numbers in...

A: Algorithm – Load 00H in a register (for carry) Load content from memory into register pair Move con...

Q: Evaluate the following expressions given below step by step to show the explanation. e1 = (10 * Z Y...

A: The, answer has given below:

Q: Write a modular program that analyzes a year’s worth of rainfall data. In addition to main, the prog...

A: Note: Programming language is missing in the question. So we will answer this program in C++. If you...

Q: You are to program an open addressing hash table. Use array size to be 50.Your hash table must resol...

A: Hashing is an improvement over Direct Access Table. The idea is to use a hash function that converts...

Q: (b)/Éxplain Dijkstra Algorithm and compute the shortest paths of given Network fig-1. 2 Source Desbn...

A: Introduction of Dijkstra's Algorithm: The Dijkstra's Algorithm is used to find the minimum distance ...

Q: When removing the string "G" form the following skip list, how many references within this skip list...

A: Deletion In skip list means we have to make connection between predecessor and successor of deleted ...

Q: Evaluate the following statement: DOM is a limited interface which works only on JavaScript and HTML...

A: he HTML DOM model is constructed as a tree of Objects: The HTML DOM Tree of Objects With the obje...

Q: A string of readings is stored in memory locations starting at XX70H, and the end of the string is i...

A: Algorithm: step 1. Load the BYTE1 in accumulator to register B step 2. Subtract the 50H from the acc...

Q: Rewrite the following if statements using the conditional if (age >= 16) ticketPrice = 20; else ...

A: Rewriting if statement The code is           //Definition for class Test           public class Te...

Q: A substring of a string is a contiguous sequence of characters from the string. For example, BC is a...

A: import java.util.*;class Test134 { public static void main(String args[]) {  Scanner sc = new Scanne...

Q: (k) get_topx_areas_of_crimes(2D1ist, x) that takes a 2D-list (database) and an integer x as input. T...

A: Program Plan:- 1. Define the function get_topx_areas_of_crimes(database, x): 2. Find out the total c...

Q: C++ PLEASE INCLUDE COMMENTS   Write one program that does the following: Ask the user for ten (10) ...

A: Actually, program is a executable software that runs on a computer.

Q: Create a program named TipCalculation that includes two overloaded methods named DisplayTipInfo. One...

A: Program approach: create a class  define two overloaded method named DisplayTipInfo ()  one method ...

Q: Printers today have many features that include improved quality, photo printing capabilities, digita...

A: Some of the most important feature that are needed for a printer is that The printer must have a hi...

Q: Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Re...

A: The, given information is:  A file that contains a list of at least 15 six-digit account numbers. Re...

Q: Compare 0-, 1-, 2-, and 3-address machines by writing programs to computeX = (A x B + C) / (D − E × ...

A: //Assemble Language Code 3 Address 2 Address  1 Address(ACCUMULATOR) 0 Address(STACK MACHINE) Loa...

Q: Rest of code in image / This is a bad programming style since it is using goto.  // This is an spage...

A: The ask is to make the given program menu-driven with the different functions and errors resolved.