Write a java program the displays the state bird

Assignment Help JAVA Programming
Reference no: EM13842122

1. Write a Java program the displays the State bird and flower. The program should prompt the user to enter a State and print both the State bird and flower. The user should be able to enter a State without worrying about case. (e.g. Users could enter Maryland, maryland, MARYLAND or any other possible combination of lower and upper case characters. States may also contain leading and trailing white spaces. Hint: Store the State information in a multi-dimensional array. The program should continue to prompt the user to enter a state until "None" is entered. You will need to do some research to find the State birds and flowers.

Enter a State or None to exit: Maryland Bird: Baltimore Oriole Flower: Black-eyed Susan Enter a State or None to exit: Delaware Bird: Blue Hen Chicken Flower: Peach Blossom Enter a State or None to exit: None

2. Design a class named Clock. The class contains private data fields for startTime and stopTime, a no argument constructor that initializes the startTime to the current time, a method named start() that resets the startTime to the given time, a stop() method that sets the endTime to the given time and a getElapsedTime() method that returns the elapsed time in seconds. Create a TestClock class to construct a Clock instance and return the elapsed time. Command line arguments should be used to send the start and end times. You should use the java.time classes.

Reference no: EM13842122

Questions Cloud

Organizational development practitioner be aware : When an action researcher is dealing with an organization that is under organized, what are key steps in the change process? Explain. What problems associated with planned change should the Organizational Development practitioner be aware of? How mig..
What types of intelligence do you think : What types of intelligence do you think are most valued in our society? Are any types of intelligence "undervalued" in your opinion?
Deep financial crisis-what might his motivations : Why do you think John Thain pushed for such high bonuses in 2008 given that Merrill was in a deep financial crisis? What might his motivations have been?
Explain how quality of life can be measured : Define "quality of life" in your own words. Explain how quality of life can be measured within the context of your definition. Make recommendations for what must be done to improve the quality of life for adults with disabilities
Write a java program the displays the state bird : Write a Java program the displays the State bird and flower. The program should prompt the user to enter a State and print both the State bird and flower.
It strategy with the strategy of the business : Your textbook discusses five practices that businesses use to more dynamically link IT strategy with the strategy of the business. In your opinion, which of these five practices do you think would work the best in your organization? Explain in detail..
What amount of interest income would siebens report : Related to this note receivable, what amount of interest income would Siebens report on its 2015 income statement?(Round your final answer to the nearest whole dollar amount.
It strategy development to be successful : What four factors must be in place for IT strategy development to be successful? Using your favorite search engine, locate a company that has a successful IT strategy and explain how these four factors contributed to the company’s success
Database normalization solution : Database Normalization Solution

Reviews

Write a Review

JAVA Programming Questions & Answers

  Sentence patterns and verb formulas

Provide the sentence pattern. Write out the sentence pattern - then write out the tense of the verb and provide the formula.

  How to creates a components

How to load Pictures, Images or Photos Files and Java source code files all together into JCREATOR WORKSPACE

  Your task in this assignment is to develop a graphical user

your task in this assignment is to develop a graphical user interface based java program that can communicate with a

  Run the code

Run the following code, Explain the output aYer you let it run 20 seconds, 5 minutes, 10 minutes.

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Allows the user to enter a temperature and whether

Write a program that allows the user to enter a temperature and whether the temperature is stated in Celsius or Fahrenheit...or whethe

  Write methods to retrieve information about a note

calculate the frequency, use the formula 440 x 2^(n/12) where n is the note number - implement a class that will be used to hold information about a musical note.

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  Difference between string and stringbuilder

What is the difference between string and StringBuilder? What are the advantages and disadvantages of a StringBuilder

  Write a java program using array to auto-grade exams

Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student.

  The menu is displayed and the user must select

The menu is displayed and the user must select an option (a number between 0 and 7). The action corresponding to the selection is performed, then the menu is displayed again and the user can choose another option.

  Generate and manipulate music and images

Arrays are a fundamental and versatile tool for representing data of all shapes and sizes In this assignment, you'll see how arrays can be applied to generate and manipulate music and images.

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