Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here's a small programming activity to help reinforce the concepts we're studying this week and to practice your programming skills! Design an ABSTRACT DATA TYPE

image text in transcribed
Here's a small programming activity to help reinforce the concepts we're studying this week and to practice your programming skills! Design an ABSTRACT DATA TYPE (ADT). Your ADT must include at least five (5) behaviors (methods" or "member functions" in C++ parlance)- more if you believe you need them. to create a robust example. "Constructors" and "Destructors" do not count toward the 5 method total, You MAY NOT choose a STACK (the textbook example) as your ADT o o Implement your ADT in a programming language of your choice that provides an ADT construct o For example, in C++ the ADT construct is the class. Write a small program that creates an instance of your data type and uses each method at least once to demonstrate the correctness of your ADT implementation.Your program must compile and run! o HINT Correct functionality of your ADT can be verified via outputs that illustrate state (member variable) changes that one can reasonably expect based on the ADT youve implemented. THE EVIDENCE Submit 2 items: ADT demo program code -file save from your IDE or editor of choice that shows both your ADT implementation and the main demo program. . o I must be able to open or copy/paste the code to compile run it myself if I choose to do so. Test run file save from your IDE or OS of choice; a screen shot also is acceptable. Must illustrate in some way that your ADT demo program has run successfully and your ADT is behaving as one would expect. REMINDER: The dropbox for this assignment will appear in the WEEK 12 module. his assignment is worth 30 points. Late submission penalties will apply as in the syllabus. r instructor will assess how well your ADT implementation and demo ram satisfy the following criteria: (15 points) Design (as realized in ADT implementation): o appropriate use of ADT concept appropriate choice of ADT construct o o 5 or more reasonable member functions (15 points) Demo program: o ADT instance correctly allocated & initialized o member functions each used at least once o memory appropriately managed o comments included that enhance understanding code o test run outputs appropriate evidence of ADTs correct functionality

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions