Implement a Java program to find the longest programming language name in a set of programm...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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 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 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
Expert Answer:
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Posted Date:
Students also viewed these programming questions
-
Design a process that meets your requirements. Describe it by using a flowchart similar to that shown in Exhibit 9.5. Fail-Safing an Automotive Service Operation. Failure: Customer forgets the need...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
You want to short a 6-month forward contract on a stock. You contacted your bank and were offered a forward price of $39.85 [Note: This forward price is available only to customers who want to take a...
-
Suppose a company incurs the following costs: Labor $800 Equipment $400 Materials $300 It owns the building, so it doesn't have to pay the usual $900 in rent. (a) What is the total accounting...
-
Without a calculator, find the exact function value. cos 45
-
Barbara Vigil, Chief Justice, New Mexico Supreme Court Ken Badilla bought a pair of Brahma brand work boots from Wal-Mart on October 19, 2003. The boots packaging had these express descriptions: iron...
-
Nevin Company makes three products in its factory: plastic cups, plastic tablecloths, and plastic bottles. The expected overhead costs for the next fiscal year include the following. Nevin uses...
-
Two large parallel plates are separated by a 0.015-m gap. The plates are connected to the terminals of a 12-V battery, which remains connected. a) What is the strength of the electric field in the...
-
Carrington Oil produces gas 1 and gas 2 from two types of crude oil: crude 1 and crude 2. Gas 1 is allowed to contain up to 4% impurities, and gas 2 is allowed to contain up to 3% impurities. Gas 1...
-
give 7 ads Ad description (screenshot or description of the ad and brand) Why were you shown this ad? Was this ad relevant to you? What data might have caused you to see this ad? How was that data...
-
Ansel is interested in environmental preservation. To that end, he has purchased vast amounts of land and kept it as undeveloped as possible. Recently, Ansel purchased 200 acres of land in Ohio at a...
-
Suppose the base case NPV of the project is $1,143,650.00 and the NPV is $1,362,406.00 when the sales volume is increased by 5,000 units. The sensitivity of the base case NPV to changes in the sales...
-
Company-A receives data on its customers' consumption patterns daily. The company cleans and curates the data once the information is obtained. Company-A developed a simple but powerful proprietary...
-
Corporate strategy indicates the choice of an industry or a set of industries in which the firm operates True False
-
File 70 80 9 9 00 1 0 12 O 13 O 14 O 15 16 17 0 18 O 19 20 Home Insert Draw Design Transitions Animations Slide Show Record B. 25 Units Jack is prescribed tinzaparin 175 units oper kg. Referring to...
-
Beta Company plans to replace its company car with a new one. The new car costs P120,000 and its estimated useful life is five years without scrap value. The old car has a book value of P15,000 and...
-
Suppose the market is semistrong form efficient. Can you expect to earn excess returns if you make trades based on? a. Your brokers information about record earnings for a stock? b. Rumors about a...
-
Given a junction diode with reverse saturation current Is = 15 A. (a) At room temperature (290 K), find V such that I > 20I s , thus allowing (A.16) to be approximated by (A.17). Find the rms noise...
-
Classify each of the following signals as an energy signal or as a power signal by calculating E, the energy, or P, the power (A, B, , , and are positive constants). (a) x 1 (t) = A| sin (t + )| (b)...
-
A binary symmetric channel has an error probability of 0.001. Determine the channel capacity.
-
True or false? Economic theory argues that discrimination should be eliminated. Why?
-
Why is discrimination based on characteristics that affect job performance difficult to eliminate?
-
Visit the Suzy Lamplugh Trust website at http://www.suzylamplugh.org and the Social Research Association at http://the-sra.org.uk/sra_resources/safety-code/ . Browse the guidance leaflets/web pages...
Study smarter with the SolutionInn App