Question: Question 5: (25 marks) Implement a Java program to find the ... Question 5: (25...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question: Question 5: (25 marks) Implement a Java program to find the ... Question 5: (25 marks) Implement a Java program to find the longest programming language name in a set of programming language with the following specifications: a. Write a Java method named longestProgLangName () that takes as an argument a 2D array called ProgLang and returns the longest language name in the 2D array ProgLang. b. Write a Java class called ProgLang2DArray that does the following tasks in the main () method: o Declares a 2D array variable named lang2D with name arr2D with 4 rows and 4 columns. o Reads from the user the values to be saved in the 2D array lang2D. o Call the method longestProglangName () to find the longest language name in the array lang2D. o Find the location (row number and column number) of the longest language name in the array lang2D. o Print the longest language name in the array lang2D and it location. Sample Run: Enter a 2D array with 4 rows and 4 columns with programming languages names: Java Pascal C Ruby Ring Ada Swift Kotlin Assembly FORTRAN The longest language name is Objective-C and found in row 2 and column 3. C# Perl PHP JavaScript Objective-C BASIC Question: Question 5: (25 marks) Implement a Java program to find the ... Question 5: (25 marks) Implement a Java program to find the longest programming language name in a set of programming language with the following specifications: a. Write a Java method named longestProgLangName () that takes as an argument a 2D array called ProgLang and returns the longest language name in the 2D array ProgLang. b. Write a Java class called ProgLang2DArray that does the following tasks in the main () method: o Declares a 2D array variable named lang2D with name arr2D with 4 rows and 4 columns. o Reads from the user the values to be saved in the 2D array lang2D. o Call the method longestProglangName () to find the longest language name in the array lang2D. o Find the location (row number and column number) of the longest language name in the array lang2D. o Print the longest language name in the array lang2D and it location. Sample Run: Enter a 2D array with 4 rows and 4 columns with programming languages names: Java Pascal C Ruby Ring Ada Swift Kotlin Assembly FORTRAN The longest language name is Objective-C and found in row 2 and column 3. C# Perl PHP JavaScript Objective-C BASIC
Expert Answer:
Answer rating: 100% (QA)
ProgLang2DArrayjava import javautilScanner public class ProgLang2DArray pub... View the full answer
Related Book For
Business Data Communications Infrastructure Networking and Security
ISBN: 978-0133023893
7th edition
Authors: William Stallings, Tom Case
Posted Date:
Students also viewed these programming questions
-
Write an assembly language Program to find the sum of the first two words (number) of data in the memory data segment with the label values below, and then continue to find the sum of the first...
-
In Exercises 1-2, use a matrix program to find the eigen- 40. values of the matrix. Then use the method of Example 4 with a row reduction routine to produce a basis for each eigenspace. 1. 2. 447 113...
-
Write a function called ParseSentence that takes as an input parameter a null-terminated string S. Where S would contain an English sentence. Assume that the delimiters are space, comma, semicolon...
-
You would like to buy a house in in 16 years and estimate that you will need a deposit of $73,014. You plan to make bi-weekly deposits into an account that you hope will earn 7.05%. How much do you...
-
What are the three capabilities that a manufacturing system must possess in order to be flexible? Discuss.
-
The plant assets section of the comparative balance sheets of Anders Company is reported below. Refer to the balance sheet data above from Anders Company. During 2021, equipment with a book value of...
-
The CAMELS system is a popular list for regulators. Explain what it is and its importance.
-
Caltec, Inc., produces and sells recordable CD and DVD packs. Revenue and cost information relating to the products follow: Common fixed expenses in the company total $105,000 annually. Last year the...
-
have you ever utilized the repayment option during a financial hardship
-
What are the two elements that an employee must show to make a successful Title VII claim? Do you think the motivating factor standard is appropriate for discrimination claims based on national...
-
Julia set up an irrevocable trust for her children and grandchildren with Crummey powers. Her husband John DID NOT agree to gift splitting to fund the trust. They have 7 children and 10 grandchildren...
-
Wilson's Winter Woolens manufactures jackets and other wool clothing. A certain designed ski parka requires the following: Direct materials standard 2 square yards at $13.50 per yard Direct...
-
Integrative Case Study: Wellbeing Efforts at KPMG KPMG LLP is a large global organization providing audit, tax, risk and advisory services. Especially during tax season, stress and long hours are...
-
There are four to five major participants involved in taking car loans through securitization to ultimate investors. Who are each of these participants and what functions do they serve
-
Suppose you have taken over as CEO of ABC Company. You have a group of first time investors with little understanding of captial budgeting. Explain the three budgeting methods (Payback Period, NPV,...
-
1. Explain your understanding of the risk/return relationship and why it is so important in Financial Management.
-
How to find NPV in lease and buy case analysis. Daiwan Semiconductor Manufacturing Company Limited ( the Client ) , together with its subsidiaries, manufactures, packages, tests, and sells integrated...
-
What will be the final value of DI after executing the following piece of code? Execute the instructions dependently one after another. CLD MOU CX,OFOH MOU AX.02874H MOU DI,01000H MOU ES, DI SUB...
-
List and briefly define key requirements for WLANs.
-
Consider a desktop publishing system used to produce documents for various organizations. a. Give an example of a type of publication for which confidentiality of the stored data is the most...
-
What types of signals are susceptible to intermodulation distortion?
-
Jason Edson and Peggy Karam agreed to liquidate their partnership on April 30 of the current year. On that date, after financial statements were prepared and closing entries were posted, the general...
-
Scott Badger and Maxine Giesen are partners in a business. On December 31 of the current year, the partners equities are Scott, \($60,000.00\) and Maxine, \($90,000.00.\) The net income for the year...
-
Jeffrey Lowe and Mona Ray are partners in a business. Statement paper, page 12 of a general journal, and a portion of the partnership's completed work sheet for the year ended December 31 of the...
Study smarter with the SolutionInn App