Appropriate message to the screen

Assignment Help Basic Computer Science
Reference no: EM131400932

Write a Java program, called LinearSearchTwo that contains a static method called findElement() that accepts a 2D char array and a char as its parameters and return a boolean value if the char is contained in the 2D char array. The array and search value should be taken in using user input. You should print an appropriate message to the screen if the element is found.

Input:

n mi mi+1 mi+2 ... mi+n x, where n is the length of the array, mi is an element in the array and x is the element that is being searched for.

Output:

A message stating if the element is found.

Sample Output 1:

.. was found in the array

Sample Output 2:

.. was NOT found in the array

Reference no: EM131400932

Questions Cloud

Information about western classical music : Submit a database design in which you address the following:Design a relational database containing the following information about Western classical music:
Videogame development company : In Assignment 1, a videogame development company recently hired you as an Information Security Engineer. After viewing a growing number of reports detailing malicious activity, the CIO requested that you draft a report in which you identify potent..
Write memo to furman outlining the cost factors : Write a one-page memo to Furman outlining the cost factors that might increase, and those that might decrease, along with a brief explanation for each factor, under the proposed system
People favorite php tutorials and resources : What are people's favorite PHP tutorials and resources? Any sites with example applications to learn from?
Appropriate message to the screen : Write a Java program, called LinearSearchTwo that contains a static method called findElement() that accepts a 2D char array and a char as its parameters and return a boolean value if the char is contained in the 2D char array. The array and searc..
Systems requirements and analysis : 1. Would you continue to work for a company if you disagreed with the firm's system development mission statement? Why or Why not?
Identify the most important strengths of your organization : Assess the organization's internal environment. Identify the most important strengths and weaknesses of your organization including an assessment of the organization's resources.
What is the value of the load resistance : The output voltage of a certain OTA with a load resistance is determined to be 3.5 V. If its transconductance is and the input voltage is 100 mV, what is the value of the load resistance?
Analyze why or why not you believe it is a pure competitor : Select a company which you believe is quite close to be purely (perfectly) competitive. Analyze why or why not you believe it is a pure competitor

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Windows server 2008 security three features

Windows Server 2008 security three features?Windows Server 2008 security three features?

  Disaggregate international consumer segmentation

In terms of international market segmentation, is transnational segmentation the same as disaggregate international consumer segmentation or two-stage segmentation (macro-segmentation and micro segmentation) in different text books. How about hie..

  Effects falling oil and gas prices on the gasoline

(a) Discuss the effects falling oil and gas prices on the gasoline equilibrium quantity and price; and, (b) what price do you expectregular gasoline will be in Pullman WA on October 15, 2015 and on December 15, 2015 and explain why.

  Find the angle through which the mirror has been rotated

Determine whether the reflector in the telescope is elliptical, parabolic, or hyperbolic.

  Categorize each of them into the area

During the Sarbanes-Oxley audit of a financial services company, you note the following issues. Categorize each of them into the area to which they belong: IT change management, logical access to data, and IT operations.

  Possesses some finite amount of magical energy

A spellcaster is given an object (e.g. mouse, owl, dwarf, purse ...) and a set of spells that she / he can use to transform the object. The effect of each spell is described by a set of from-to pairs. For example, spell "Chiroptera" may transform ob..

  What other relationships among these variables can you infer

What other relationships among these variables can you infer? Which of the values are dependent solely on graph properties, and which are dependent on dynamic properties of the DFS?

  Create a class name gasprices

Purpose: Create a class name GasPrices. Its main() method holds an integer variable named pricePerBarrel to which you will assign a value entered by a user at the keyboard. Create a method to which you pass pricePerBarrel. The method displays the ran..

  Designing an active directory infrastructure

What are some factors or requirements when designing an Active Directory Infrastructure? How do you gather the requirements for the design? Please explain in approximately in two paragraphs.

  Develop an alternative to the biofilm detachment model

Run the simulation long enough to observe the pores gradually filling and formation of a compact biofilm.

  What is the worst-case asymptotic running time for sortk

Imagine that there exists an algorithm SPLITk that can split a list L of n elements into k sub lists, each containing one or more elements, such that sub list i contains only elements whose values are less than all elements in sub list j for i

  Vlsm and explain it step by step

Submit a memo explaining the following two topics: VLSM (details on VLSM please do some research)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd