MASON CS 310 - Project 0: Project Skills Check

Unformatted text preview:

Shamseddine Russell Zhong Project 0 Project Skills Check CS310 Fall 2022 Project 0 Project Skills Check DUE Sunday August 28th at 11 59pm NO EMERGENCY TOKENS Setup Download the p0 zip and unzip it This will create a folder section yourGMUUserName p0 Rename the folder replacing section with the 001 002 005 etc based on the lecture section you are in Rename the folder replacing yourGMUUserName with the first part of your GMU email address After renaming your folder should be named something like 001 krusselc p0 Complete the readme txt file an example file is included exampleReadmeFile txt Submission Instructions Make a backup copy of your user folder Remove all test files jar files class files etc You should just submit your java files and your readme txt Zip your user folder not just the files and name the zip section username p0 zip no other type of archive no rars 7zips etc following the same rules for section and username as described above o The submitted file should look something like this 001 krusselc p0 zip 001 krusselc p0 BananaCoconut java OneItemBag java readme txt Submit to blackboard DOWNLOAD AND VERIFY WHAT YOU HAVE UPLOADED THE RIGHT THING Submitting the wrong files will result in a 0 on the assignment Basic Procedures You must You may You may NOT Have code that compiles with the command javac java in your user directory without errors or warnings Have code that runs with the following command for part 1 You may not use SuppressWarnings to remove warnings you must fix them java BagUsageDemo java BananaCoconut number number Have code that runs with the following command for part 2 Add additional methods and variables not specifically mentioned in the project description however these methods and variables must be private Make your program part of a package Add additional public methods or variables local variables are ok Use any built in Java Collections Framework classes anywhere in your program e g no ArrayList Use any arrays anywhere in your OneItemBag program you may use them in BananaCoconut Add any additional import statements or use the fully qualified name to get around adding import statements Add any additional libraries packages which require downloading from the internet LinkedList HashSet etc Grading Rubric Due to the complexity of this assignment an accompanying grading rubric pdf has been included with this assignment Please refer to this document for a complete explanation of the grading 1 Project 0 Project Skills Check Shamseddine Russell Zhong Overview This project should be very straight forward and take only an hour or so to implement if you have all the prerequisite knowledge from the prior courses However if it s been a while since you took CS211 or if you took CS211 at another university or even if you just didn t get the best grade you could have in that class you may have additional catching up to do Below are the major topics required to complete this assignment and links to resources to help you with them 1 Basic Java Programming this is required and you need to have at least one additional semester of CS310 Fall 2022 programming under your belt to be successful in CS310 If you re not quite comfortable a Review chapters 1 4 in our textbook Weiss b Review the following Java Tutorials i Trail Getting Started https docs oracle com javase tutorial getStarted index html ii Trail Learning the Java Language https docs oracle com javase tutorial java index html iii Trail Essential Classes for exceptions and basic I O https docs oracle com javase tutorial essential index html c For writing JavaDocs see i This tutorial https www baeldung com javadoc ii The official JavaDoc documentation https www oracle com technetwork java javase documentation index 137868 html 2 Using a Terminal Command Line this is a required skill for every programmer not just everyone in CS310 For this class all you really need to be comfortable changing directories compiling and running java programs and providing using command line arguments in Java Here are some quick references for both OS systems a Table of simple commands in Windows Linux https access redhat com documentation en US Red Hat Enterprise Linux 4 html Step by Step Guide ap doslinux html b Working with command line arguments for from Java https docs oracle com javase tutorial essential environment cmdLineArgs html If you re interested in specific topics there is a table of contents in the front and an index in your textbook in the back but here are some quick references for topics will definitely play a role in this particular assignment Basics of Objects and References pg 30 Strings pg 35 Command Line Arguments pg 45 Exception Handling pg 47 Input and Output pg 51 JavaDocs pg 73 Generics pg 150 Local Classes pg 161 Requirements An overview of the requirements are listed below please see the grading rubric for more details Implementing the classes You will need to implement required classes methods Style You must follow the coding and conventions specified by the style checker JavaDocs You are required to write JavaDoc comments for all the required classes and methods JavaDocs Style Checker Yes as you may often be asked to do in a professional setting you ll need to document your code correctly and conform to a given code style many companies have their own style requirements but there are also some standard ones like Sun and Google TL DR You need to know some things to be successful in this class You hopefully learned them in CS211 This project checks that There are resources and links if you need help If you can t do something learn now 2 Project 0 Project Skills Check Shamseddine Russell Zhong Part 1 Make a bag that can hold anything This first part checks that you know how to use generics write JavaDocs and use the basic command line tools you ll use throughout the semester You need to write a class called OneItemBag in a file called OneItemBag java that you create This class represents a bag that can hold any single type of object decided at bag creation time and only one item of that type at a time You may have a zero parameter constructor if you want one but you must have the following three features CS310 Fall 2022 1 a method that puts an item in the bag addItem which returns whether or not it was successfully added 2 a method that removes an item from the bag and returns it removeItem return null if there is no item 3 a method to check if an item is in the bag hasItem which returns true or false Make


View Full Document

MASON CS 310 - Project 0: Project Skills Check

Documents in this Course
Load more
Download Project 0: Project Skills Check
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Project 0: Project Skills Check and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Project 0: Project Skills Check 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?