Java Question
assignment 8
Create a CLI (command line interface) application for NOAA that will store, search and sort up to 10 days of weather information. The program shall utilize a single dimensional array that will store up to 10 WeatherData objects for each day. Import the WeatherData class from Week 7 to create the weather data objects. Add a class called NoaaWeatherTracker with a main() method that will produce the following output:
NOTE: Text in BOLD below are values entered by the user. The menu will continue to be displayed until Quit Application is selected.
Welcome to the NOAA Weather Tracker.
Menu Options
1) Input new daily weather data
2) Display all recorded weather data
3) Display recorded weather data sorted by temperature
4) Search recorded weather data for wind speed
5) Quit Application
Please select a menu option: 1
Please enter daily weather data…
Wind Speed (mph): 50
Daily Temperature (F): 60
Daily weather data recorded for Day 1
Ensure that the NoaaWeatherTracker class is stored in a file called NoaaWeatherTracker.java.java.
______________________________
Project final
Your final submission for the CIS 210 Course Project should meet the following requirements:
1) Requests the user to input his/her first name
2) Formats the name to capitalize the first letter and makes all remaining characters lowercase, removing any spaces or special characters
3) Requests the user to input a binary number
4) Tests the input string for compliance with the binary number system (only 0 and 1 are allowed)
5) Displays an error message if the string does not meet the input requirements and identifies what is wrong
6) Assuming a valid binary number, the program will count the number of 1’s and output that number
7) Output whether the number of 1’s is even or odd
Note that the first 5 requirements above were completed in the Week 4 and Week 6 Course Project submissions. Utilize the code from those submissions to help you complete this final submission. Requirements #6 and #7 are new and need to be added to your final solution for the Week 8 Course Project submission.
All input and output should be to/from the console. There are no graphical requirements for this project submission. Your Java source code should use indentation and comments where appropriate to explain the algorithm and flow control used.
Examples of invalid binary numbers:
abc
10102011
10101FF
0000 1111 (note: contains a space)
Examples of valid, accepted binary numbers:
1000001
1100
10101011
Your program will only test one input for each run of the program. Testing each of the test cases requires a separate run of your program for each input.
The following 1 test runs illustrate the format of the program’s console input and output:
Enter your name: DAVID
Enter a binary number: 01110001
David
Even
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.