Sponsored Links


Results 1 to 2 of 2

Thread: CS304 Object Oriented Programming assignmnet no 5 fall January 2012

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    Icon19 CS304 Object Oriented Programming assignmnet no 5 fall January 2012

    Sponsored Links1



    Object Oriented Programming (CS304)
    Assignment No.05


    Total Marks 10


    Deadline

    Your assignment must be uploaded before or on 26th January, 2012.


    Rules for Making



    It should be clear that your assignment will not get any credit if:



    The assignment is submitted after due date
    The assignment is copied


    Objectives



    This assignment has been designed so that you would be able to implement the Electronic Card system in OOP. After the completion of this assignment you should have a good grasp on how to implement.



    Integrate different classes
    Template classes
    Inheritance and Templates
    Template functions
    Template Constructor





    In previous assignments we have understood all the basics of the Electronic Card System including the Object Model Diagram and highlighted the Abstraction of classes in terms of attributes and functions prototype. Implement of User and Card related functions of Electronic Card System. Now we want:



    Now we want to integrate both the User and Card implementation, and write the main function for the entire Electronic Card System.
    Make Cards and User Class as a template Class, Inherit different classes form them.



    Assignment:



    1st Part of the assignment:



    In first part of the assignment, integrate the User class and Card class code (3rd and 4th assignment solution) in a single file. And write the main function for them. Such as:





    For User:



    In the main function you will create object of “User” class, and through that particular object you will call add, view, and delete method of user class.



    Create an object of “Card” class, and through the particular object you will call add, view, and delete method for “Card” class.



    When you call the add method of User class, then the following options will appear:



    Please select any option:

    Member User
    Admin User



    If user select 1 option, then the following output will be required:



    Sponsored Links

    Enter User Id:

    Enter User Name:

    Enter User Password:



    Similar functionality for the Admin User



    If the view method is called through User class object, then the following output will appear:



    User Id:

    User Name:

    Status:



    If the delete method is called through User class object, then the following output will appear:



    Enter user Id:

    This user has been deleted successfully





    For Cards:



    In main function, create an object of Cards class, and through that object call different functions of Cards class, such as AddCards, ViewCards, and DeleteCards.



    If the user calls the AddCards method, then the following will appears:



    Please select any one option:

    Birth Cards
    Marriage Cards
    Friendship Cards
    Baraat Cards
    Walima Cards
    Mehindi Cards



    When user select any one option form the above, then the following will appears:



    Enter Card Id:

    Enter Card Name:

    Enter Message for the receiver:



    If the user calls the ViewCards method, then the following will appears:



    Enter Card Id:



    CardId :__( card id will be show here) _ CardName_(Card Name will be shown here)___



    Message for the receiver :________( Here will be the message for the receiver) ______

    __________________________________________________ __________________________________________________ ____________________________________________



    If the user calls the DeleteCards method, then the following will appears:



    Enter Card Id:



    This Card has been deleted successfully



    Note:



    Please include the code of 3rd and 4th assignment with the 5th assignment.



    For this assignment consider “Cards” class as a concrete class, not an abstract class







    2nd part of the assignment:



    In the second part of the assignment, we declared template classes, template functions, template constructor, and inheritance in the case of template.



    Make Users, Member Users, Admin Members, Cards, BirthCards, MarriageCards, Friendship Cards, as a template classes.



    Declared template constructors for all the above classes.



    Show the inheritance relationship between the above template classes.



    Make add, view, and delete functions as a template functions.



    Note: just write the declaration of template class, template functions, template constructors, and just write that how inheritance relationship is represented in the case of templates between the given classes.





    Uploading Instructions:



    You have to upload your running zipped Dev c++ project.





    Attached Files Attached Files

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    Idea Solution:

    simply create to classes…admin, user
    in admin class print three strings for input (mentioned in assignment)
    1. else-if statement to access the forum user
    2. else-if to store as well as create the card
    3. do-while to repeate the procedure.
    in user class print three strings for input
    1. else-if to view card
    2. do-while for repeatition…..



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-30-2012, 03:31 PM
  2. CS304 Object Oriented Programming Quiz No.1 Fall Semester 2012
    By Vuhelper in forum MCQ's & Quiz Discussion
    Replies: 0
    Last Post: 11-14-2012, 01:54 PM
  3. Replies: 1
    Last Post: 01-23-2012, 08:23 PM
  4. Replies: 0
    Last Post: 01-13-2012, 08:40 PM
  5. Replies: 1
    Last Post: 01-13-2012, 01:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft