Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS304 Object Oriented Programming assignmnet no 5 fall January 2012
#1

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:



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
.doc   Fall 2011_CS304_5.doc (Size: 42.5 KB / Downloads: 107)

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#2
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…..



0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,925 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,161 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,793 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,696 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,794 01-20-2016, 06:19 PM
Last Post: Vuhelper
  CS609 System Programming Assignment No. 03 Solution 21.01.2 Vuhelper 0 5,240 01-20-2016, 06:02 PM
Last Post: Vuhelper
  CS607 Assignment No. 03 Solution 20th January 2016 Vuhelper 0 14,512 01-20-2016, 06:02 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)