Question:

• Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection.?

by  |  earlier

0 LIKES UnLike

Hello, I'm in need of any one's help. I have tried to do my assignment but could not get too far. If any one could guide me to the following questions, thank you

• Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection.

• Identify each of the classes, associated data, and operations for the classes.

• Generate the pseudocode for each of the classes as demonstrated on p. 251.

• Draw a GUI that will create the objects and provide access to each object’s processing methods. Note: Use the drawing tool in Microsoft® Word or in any other applicable

drawing tool to complete this part of the assignment.

 Tags:

   Report

1 ANSWERS


  1. Hope this helps, I hope your not in my IT210 class

    This however is not my code, I found it on the web and it helped me focus on what I needed to do.

    For your GUI I recommend just making a picture of what the program would look like (I.E. a button to add a CD or DVD, a button to list CD's or DVD's)

    Each of the classes, their associated Data and their operations are given below

    Classes

    1. Media

    Data

    • totalItems

    • Name

    • Serial

    Operations

    • AddItem

    • getName

    • getSerial

    • getTotalItems

    • setName

    • setSerial

    • setTotalItems

    2. CD is a Media

    Data

    • Album

    • Artist

    • Volume

      Operations

    • getAlbum

    • getArtist

    • getVolume

    • setAlbum

    • setArtist

    • setVolume

    3. DVD is a Media

       Data

    • Movie

    • Artist

    • Volume

                  Operations

    • getAlbum

    • getArtist

    • getVolume

    • setAlbum

    • setArtist

    • setVolume

    •         Generate the pseudocode for each of the classes of objects - Generate the pseudocode for each of the functions and subprograms to perform the processes on the objects

    Class Media

    totalItems As Integer

    Name As String

    Serial As Integer

    Subprogram AddItem(name, number)

    Call setName(name)

    Call setSerial(number)

    Call setTotalItems(getTotalItems + 1)

    End Subprogram

    Function getName() As String

    Set getName = Name

    End Function

    Function getSerial() As String

    Set getSerial = Serial

    End Function

    Function getTotalItems() As Integer

    Set getTotalItems = totalItems

    End Function

    Subprogram setName(name)

    Set Name = name

    End Subprogram

    Subprogram setSerial(serial)

    Set Serial = serial

    End Subprogram

    Subprogram setTotalItems (items)

    Set totalItems= items

    End Subprogram

    End Class

    Class CD As Media

    Album As String

    Artist As String

    Volume As Integer

    Function getAlbum() As String

    Set getAlbum = Album

    End Function

    Function getArtist() As String

    Set getArtist = Artist

    End Function

    Function getVolume() As Integer

    Set getVolume = Volume

    End Function

    Subprogram setAlbum(album)

    Set album = album

    End Subprogram

    Subprogram setArtist(artist)

    Set Artist = artist

    End Subprogram

    Subprogram setVolume(volume)

    Set Volume = volume

    End Subprogram

    End Class

    Class DVD As Media

    Movie As String

    Artist As String []

    Volume As Integer

    Function getMovie() As String

    Set getMovie = Movie

    End Function

    Function getArtist() As String []

    Set getArtist = Artist

    End Function

    Function getVolume() As Integer

    Set getVolume = Volume

    End Function

    Subprogram setMovie(movie)

    Set Movie = movie

    End Subprogram

    Subprogram setArtist(artist[])

    Integer i As Integer

    For i = 1 to artist.length

    Do

    Set Artist[i] = artist

    Done

    End Subprogram

    Subprogram setVolume(volume)

    Set Volume = volume

    End Subprogram

    End Class

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.