ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 02 May 2017 My Price 9.00

IDS 201 Spring 2017 Assignment 1

I need help with this assignment, thanks a lot for the help! 

 

 

IDS 201
Spring 2017
Assignment 1
Due Monday 2/27/2017
80 points Instructions
Deadline
In order to receive full credit, this assignment must be submitted by Monday, February 27 th at 11:59pm.
Submitting your assignment early is recommended, in case problems arise with the submission process.
Late submissions will be accepted (but penalized 15pts) up to one week after the submission deadline.
After that, assignments will not be accepted. Assignment
Create a program for managing inventory data. The class name should be InvTracker, an underscore, and
your NetID run together; for example, if your NetID is abcde6, your class name is InvTracker_abcde6. For
this assignment, we will create the initial class definition with data members, method shells (just headers),
and a second class, InvItem. The design requirements are:
1) InvTracker data members:
a) an array of type InvItem, with no specific size (statement: InvItem items;)
b) an int for the InvItem array size
2) InvTracker methods:
a) inStock: takes a long as a parameter, returns a boolean
b) stockAmount: takes a long as a parameter, returns an int
c) add: takes a long and an int as parameters, returns void
d) remove: takes a long and an int as parameters, returns void
e) delete: takes a long as a parameter, returns void
f) search: takes a String as a parameter, returns an array of type InvItem
(method header: InvItem search(String s))
3) The InvItem class should be placed after and outside the InvTracker class definition, as:
public class InvTracker { // code goes here} class InvItem {//more code goes here}
Note that only the InvTracker class should be public!
4) InvItem data members:
a) a long named id
b) a String named name
c) an int named quantity
5) InvItem methods:
a) get & set methods for id (resp. return or accept a long)
b) get & set methods for name (resp. return or accept a String)
c) get & set methods for quantity (resp. return or accept an int) Additional Constraints
The program should be implemented as a single file and Java class. All data members should be
declared as private; all methods should be declared without any visibility modifiers. Methods that return a
value should return a placeholder value (like -1 or an empty String) to avoid appearing as code errors in
Eclipse. Note that, for this assignment, the program won’t actually run since it doesn’t have a main
method.

Attachments:

Answers

(11)
Status NEW Posted 02 May 2017 07:05 AM My Price 9.00

-----------

Not Rated(0)