Preview

Object Oriented Design

Satisfactory Essays
Open Document
Open Document
263 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Object Oriented Design
Object Oriented Design The object oriented design to be used CD and DVD media collection system to identify the information about the media. You will need some general information to make the system work correctly.

Item
CD
DVD The media collection needs to have a item class to keep the general information about the media and a class to handle the media to is going to be used.
Attributes are: Name, type and quantity.
Methods are: Set name, get name, set type, set quantity and get quantity
Class item
Name as string
Type as string
Quantity as integer

Sub program new item (New name)
Call set name (New name)
Call set quantity (Quantity + 1)
End subprogram
Subprogram set name (New name)
Set name = New name
End subprogram
Subprogram set type (New type)
Set type= New type
End subprogram
Subprogram set quantity (New quantity)
Set quantity = New quantity
End subprogram
Function get name () as string
Set get name = Name
End function
Function get type () as string
Set get type = Type
End function
Function get quantity () as integer
Set get quantity = Quantity
End function
End class

Class CD media as item
Length as real
Genre as string
Rating as string
Subprogram new CD media (New length, new genre, new rating)
Call set length (New length)
Call set genre (New genre)
Call set rating (New rating)
End subprogram
Subprogram set length (New length)
Set length = New length
End subprogram
Subprogram Set genre (New genre)
Set genre= New genre
End subprogram
Subprogram set rating (New rating)
Set rating = New rating
End subprogram
Function get length () as

You May Also Find These Documents Helpful

  • Better Essays

    Case Study Ori Shema

    • 978 Words
    • 4 Pages

    I used a Behringer ECM8000 microphone to measure the control rooms. I measured with The…

    • 978 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Annual day essay

    • 1648 Words
    • 7 Pages

    II. Transcription of the audio file will be performed in Microsoft Word and saved as a 97/2003 compatible document (.DOC).…

    • 1648 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Object Relation Theory

    • 68 Words
    • 1 Page

    Another theory that equates childhood experiences to adulthood domestic abuse is Object Relations Theory. This theory asserts that the relationships we form with others during childhood are the psychological blueprints for our future relationships. These theorists argue that relationships with primary care givers in the earliest stages of life are the basis for which individuals learn to see themselves and others, and attach certain emotions to these…

    • 68 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Unit 3 A BTEC Assignment

    • 574 Words
    • 3 Pages

    MUNSTER ENERGY DRINKS LTD is embarking on a new campaign to advertise and raise awareness of their new range of energy drinks for a global market. As part of the campaign they want a 30-second TV commercial, which maintains the Munster Energy Drinks brand identity, which is energetic, dangerous and edgy. The new flavours, which they are currently advertising are:…

    • 574 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Organizational Design

    • 531 Words
    • 3 Pages

    OBJECTIVE: To apply the concepts learned about structure and agility at the individual, group, and organizational levels in designing the Woody Manufacturing Company.…

    • 531 Words
    • 3 Pages
    Good Essays
  • Best Essays

    The following report introduces two producers I draw inspiration from, and am influenced by; Rick Rubin and Ken Scott. Firstly to critically analyze their bodies of work we must first understand the role of a producer and what classifies an individual as a producer or engineer. A producer must be able to oversee and effectively manage the recording, they must be able to understand the bands vision, they must have an overall goal as to what they wish to produce with the band, they must be creatively innovative and true to the bands and their own style, they must effectively portray the story the band is telling through their song, they must be able to shape and mold a piece of music and make it sound cohesively perfect. The producer is relied on to take a sound and make it happen, they are expected to work within a certain timeframe and have to be able to follow the direction of the band, the overall mood and tonality of the song must be effectively conveyed in the piece and therefore an appropriate use of mixing must be analyzed by the producer in order to achieve the most relevant sound that the band is associated with. The producer must have a competent understanding of processing a sound, and the recording path that is used to do this. The role of a producer, however, has greatly changed over the past decade with the forever expanding world of technology - we mere a need a laptop and a simple recording device to be classified as a producer in today’s music society, furthermore as future producers ourselves we must have a sound knowledge of our industry that lays before us and the greats that are within it, for these are the people we will most learn by and draw inspiration from. To produce a reliable report the validity of resources must be considered, and the relevance of sources to the topic presented should be…

    • 3405 Words
    • 14 Pages
    Best Essays
  • Powerful Essays

    Software Engineering

    • 2867 Words
    • 12 Pages

    Any coherent and reasonable project must have some requirements that define what that project is supposed to do. The requirements are the basic steps in implementing a project. A requirement is an objective that must be met. There are several types of requirements such as price, performance and reliability objectives. Requirements are instructions describing what functions the project is supposed to provide, what characteristics the project is supposed to have, and what goals the project is supposed to meet. The shortage of requirements causes many problems in starting and implementing a project. This law states that this shortage of requirements is the main source in the failure of the project.…

    • 2867 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    Object Oriented Processes

    • 400 Words
    • 2 Pages

    Therefore the car will start. Then when the car is started, the driver sends another message by shifting the gear so that when the driver places the foot on the accelerator, it therefore, sends another message to the engine how the idle will be. How much RPM’s will run so that the car will begin to accelerate given the selection of gear the driver has placed it in. These are messages sent back and forth.…

    • 400 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Hsm Week Five Dq

    • 881 Words
    • 4 Pages

    The class will be divided into different clusters for this discussion question. Check the Main forum for your assigned cluster. Each assigned cluster will address one of the main steps used in the process of developing an integrated information management system.…

    • 881 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Prelimsofte

    • 663 Words
    • 3 Pages

    Each store has a stock of movies and video games for rent. For this first iteration, just focus on the movies. It is important to keep track of each movie title: to know and to identify its category (classical, drama, comedy, and so on), its rental type (new release, standard), movie rating, and other general information such as movie producer, release date, and cost. In addition to tracking each title, the business must track individual copies to note their purchase date, their condition, their type (VHS or DVD), and their rental status. User functions must be provided to maintain this inventory information.…

    • 663 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Object oriented programming is perceived among programmers to be better than other structural programming languages. This is because of the ease at which complex programs can be maintained. For a structured programming language, the solution is concise and deals directly with the end result; it uses procedures and functions to immediately…

    • 633 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Johannes Sametinger C. Doppler Laboratory for Software Engineering Johannes Kepler University of Linz A-4040 Linz, Austria…

    • 4744 Words
    • 19 Pages
    Good Essays
  • Powerful Essays

    References: [1] Grady Booch. “OBJECT-ORIENTED ANALYSIS AND DESIGN”, Addison-Wesley Professional, 2 editions, USA, 1993. [2] Hamdy A.Taha.” Operations Research: An Introduction “,Prentice Hall, 7 editions 5 ,USA,2006. [3] John D. McGregor, David A. Sykes “A Practical Guide to Testing Object-Oriented Software”, AddisonWesley Professional,USA, 2001. [4] Peretz Shovel.” functional and object-oriented analysis and design “(an integrated methodology), Idea Group Publishing (an imprint of Idea Group Inc.), United States of America, 2006. [5] Prem Kumar Gupta, D.S.Hira.” Operations Research”, An Introduction, S.Chand and Co., Ltd. New Delhi, 1999. [6] Reghu Ramakrishnan, Johannes Gehrke "Database management systems", second Edition, McGraw-Hill, August 1999.…

    • 3460 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    WILEY SERIES ON PARALLEL AND DISTRIBUTED COMPUTING SERIES EDITOR: Albert Y. Zomaya Parallel & Distributed Simulation Systems / Richard Fujimoto Surviving the Design of Microprocessor and Multimicroprocessor Systems: Lessons Learned / Veljko Milutinovic Mobile Processing in Distributed and Open Environments / Peter Sapaty Introduction to Parallel Algorithms / C. Xavier and S.S. Iyengar Solutions to Parallel and Distributed Computing Problems: Lessons from Biological Sciences / Albert Y. Zomaya, Fikret Ercal, and Stephan Olariu (Editors) New Parallel Algorithms for Direct Solution of Linear Equations / C. Siva Ram Murthy, K.N. Balasubramanya Murthy, and Srinivas Aluru Practical PRAM Programming / Joerg Keller, Christoph Kessler, and Jesper Larsson Traeff Computational Collective Intelligence / Tadeusz M. Szuba Parallel & Distributed Computing: A Survey of Models, Paradigms, and Approaches / Claudia Leopold Fundamentals of Distributed Object Systems: A CORBA Perspective / Zahir Tari and Omran Bukhres Pipelined Processor Farms: Structured Design for Embedded Parallel Systems / Martin Fleury and Andrew Downton Handbook of Wireless Networks and Mobile Computing / Ivan Stojmenoviic (Editor) Internet-Based Workflow Management: Toward a Semantic Web / Dan C. Marinescu Parallel Computing on Heterogeneous Networks / Alexey L. Lastovetsky Tools and Environments for Parallel and Distributed Computing Tools / Salim Hariri and Manish Parashar Distributed Computing: Fundamentals, Simulations and Advanced Topics, Second Edition / Hagit Attiya and Jennifer Welch Smart Environments: Technology, Protocols and Applications / Diane J. Cook and Sajal K. Das (Editors) Fundamentals of Computer Organization…

    • 97856 Words
    • 392 Pages
    Good Essays
  • Satisfactory Essays

    Q1: Create a class that includes a data member that holds a “serial number” for each object created from the class. That is, the first object created will be numbered 1, the second 2, and so on. To do this, you’ll need another data member that records a count of how many objects have been created so far. (This member should apply to the class as a whole; not to individual objects. What keyword specifies this?) Then, as each object is created, its constructor can examine this count member variable to determine the appropriate serial number for the new object. Add a member function that permits an object to report its own serial number. Then write a main() program that creates three objects and queries each one about its serial number. They should respond I am object number 2, and so on. Use copy constructor for this task both deep and shallow copy.…

    • 304 Words
    • 2 Pages
    Satisfactory Essays