Question: Implement a Java program to find the longest programming language name in a set of programm language with the following specifications: & Write a
Implement a Java program to find the longest programming language name in a set of programm language with the following specifications: & Write a Java method named longest ProgLangName() that takes as an argument a 2D a 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 mai method: Declares a 2D array variable named lang2D with name arr2D with 4 rows and 4 colum Reads from the user the values to be saved in the 2D array lang2D. Call the method longestProgLangName() to find the longest language name in the ar lang2D. Find the location (row number and column number) of the longest language name in array lang2D. 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 C Perl PHP Pascal C BASIC Ruby Ring Ada Swift Kotlin Assembly FORTRAN The longest language name is Objective-C and found in row 2 and column 3. JavaScript Objective-C 5.1 Draw a sequence diagram for the below given scenario 10 Marks A student would like to book a laboratory session slot for his/her practical class. The scheduler will check for a free slot. If there is a free slot, the student will be accepted. The student will be assigned to a specific slot in the schedule. The student will be notified with a confirmation message. If there is no free slot available in the system, a message will be prepared by the scheduler and the notification will be sent to the student. The initial message login will be originated from the user interface and send to the scheduler 5.2 Draw a state chart diagram for the below given scenario. Assume a scenario of laboratory schedule's various states according to the below given description. A laboratory schedule is in the preparation stage at the beginning of the academic year. If the preparation is not completed within the specified time it will be closed. If the preparation is complete within the specified time, it will be in the ready state. However, if the schedule is not completed with time slots it will not be continued for booking For completed schedule, it will be opened for booking by students for their slot. If the schedule is full the students will not be able to book a slot and will show a closed status to students. Nevertheless, if any student delete their slot the schedule will become free and opened for booking by other students. If the booking is cancelled by the system for specific reasons the schedule will be closed. The students should be notified about the cancellation. 10 Marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
