Write a java program the displays the state bird and flower

Assignment Help Computer Engineering
Reference no: EM132200791

Write a Java program the displays the State bird and flower. You should use your IDE for this exercise.

You should also use Java classes to their full extent to include multiple methods and at least two classes. 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. After all States have been entered by the user, the program should display a summary of the results. You will need to do some research to find the State birds and flowers. Here is a sample run:

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

A summary report for each State, Bird, and Flower is: Maryland, Baltimore Oriole, Black-eyed Susan Delaware, Blue Hen Chicken, Peach Blossom Please visit our site again!

Create a test class that constructs at least 3 States objects. For each of the objects constructed, demonstrate the use of each of the methods. Be sure to use your IDE to accomplish this assignment.

The google recommended Java style guide, provided as link in the week 2 content, should be used to format and document your code. Specifically, the following style guide attributes should be addressed:

Header comments include filename, author, date and brief purpose of the program.

In-line comments used to describe major functionality of the code.

Meaningful variable names and prompts applied.

Class names are written in UpperCamelCase.

Variable names are written in lowerCamelCase.

Constant names are in written in All Capitals.

Braces use K&R style.

Reference no: EM132200791

Questions Cloud

Write a java program that finds prime numbers : Your program first should take a number from the user. Then it should looks for prime numbers between zero and the number user entered.
Examine what the bumper sticker says : We have now ventured in the part of economic theory where we explore why we buy goods and services. We know we respond to prices but we also buy goods.
What is the rotational speed of the disk : 1) What is the rotational speed of the disk? 2) What is the transfer time for one sector?
Measure the usefulness of the words : 1. Why can't we use TF alone to measure the usefulness of the words? 2. What is a caveat of IDF? How does TFIDF address the problem?
Write a java program the displays the state bird and flower : Write a Java program the displays the State bird and flower. You should use your IDE for this exercise.
Write a java program that contains a method : This file can contain any number of integers. Next, the method finds the maximum of these integers and returns it.
What are some technologies included into a web-based : What are some technologies included into a Web-based Training and what are some pros and cons of it.
Define what happens to macroeconomic aggregates : If the Federal Reserve were to target the price level, so that Pt = P, how would money supply change if productivity (At) suddenly decreased temporarily?
How the round robin scheduling algorithm works : Topic 1: Discuss how the round robin scheduling algorithm works.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write the decryption algorithm in pseudo code for om mode

Write the decryption algorithm in pseudo code for OM mode. Write the decryption algorithm.in pseudo code for CTR mode.

  Write conditional expressions to perform the given tests

Write conditional expressions to perform the following tests: a. When amountOwed is greater than 1000.00, display an overdue message.

  Write a function that receives a string and return a double

Write a function that receives a string and return a double floating-point value. The function declaration would look like this

  A function that returns whether a particular channel

A function that returns a new integer, with the given channel enabled. long enableChannel(long A, int channel) { ... }

  Write a search method to determine if a word is in the list

Write a search method to determine if a word is in the list or not and a separate insert method. You will need a print method as well.

  List all of the classes and methods used in the program

Make a list of the import statements and, under each one, list all of the classes and methods used in the program that come from that imported package.

  Write a function that posterizes an input picture

Write a function that posterizes an input picture along a very specific process. If the red value is greater than 180, then set the pixel to red.

  Describe how moving the cutoff up or down would affect

Describe how moving the cutoff up or down would affect the classification error rate for records that are truly fraudulent.

  Disadvantages of vector graphics and raster graphics

Explain the basic principles, advantages, and disadvantages of vector graphics and raster graphics.

  Discuss wholesale loan processing

is a financial company that manages thousands of accounts across Canada, the UnitedStates

  What degree are you working toward

ISSC642 What degree are you working toward? What benefits do you hope to achieve with your degree e.g. career advancement?

  Critical vulnerabilities on the public facing website

Issue in this scenario is why are there critical vulnerabilities on the public facing website to begin with?

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