2023 1 Homework 4 This assignment demonstrates your understanding of the String StringBuffer | Assignment Collections

Computer Science 2023 Homework 4

2023 1 Homework 4 This assignment demonstrates your understanding of the String StringBuffer | Assignment Collections

1
Homework 4
This assignment demonstrates your understanding of the String, StringBuffer, StringBuilder classes, along with classes in the java.time package and the use of command line arguments. This homework consists of 2 programming assignments worth 25 points each.
Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date.
1. (25 points) 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. 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
2. (25 points) 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. Here is sample run:
java TestClock 11:45:12 11:48:13 Elapsed time in seconds is: 181
Grading Rubric:
The following grading rubric will be used to determine your grade:
Attribute
Exceeds
Meets
Does not meet
Design (5 points)
(5 points)
Exhibits proper use of parameters, and
(3-4 points)
Exhibits proper use of parameters, and
(0-2 points)
2
selection of data types all of the time.
Employs correct and appropriate use of programming structures (loops, conditionals, classes etc.) all of the time.
Efficient algorithms used all of the time.
selection of data types most of the time.
Employs correct and appropriate use of programming structures (loops, conditionals, classes etc.) most of the time.
Efficient algorithms used most of the time.
Rarely exhibits proper use of parameters, and selection of data types.
Rarely employs correct and appropriate use of programming structures (loops, conditionals, classes etc.)
Poorly structured and inefficient algorithms.
Functionality (10 points)
(9-10 points)
Extra effort was apparent through the addition of significant and additional functionality beyond the scope of the assignment.
(7-8 points)
Program fulfills most functionality.
Most requirements were fulfilled.
Screen captures provided demonstrating the successful compiling and running of the program.
(0-6 points)
Program does not fulfill functionality.
Few requirements were fulfilled.
Test cases (5 points)
(5 points)
Test cases provide comprehensive coverage of all code paths.
Discussion of run-time errors included.
(3-4 points)
Test cases provide coverage of most code paths.
Test cases results well documented providing pass/fail results for each test case.
(0-2 points)
No or insufficient test cases
Minimal supporting evidence provided to verify testing actually took place.
Java Style Guide (5 points)
(5 points)
Code impeccably neat and well-organized.
Extensive In-line comments providing additional insight into code design and functionality
(3-4 points)
Header comments include filename, author, date and brief purpose of the program.
In-line comments used to describe major
(0-2 points)
Code rarely follows recommended Java style guide
3
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.
Submission requirements:
Your deliverables include all Java files (.java) and a single word (or PDF) document. The Java files should be named appropriately for your applications. Your word document should include screen shots showing the successful compiling and running of each application, and a detailed description of the test plan for each application. The test plan should include the input, expected output, actual output and if the test case passed or failed. Submit your files to the Homework 4 assignment area no later than the due date listed in the calendar.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational