VUDESK

¤Virtual University Of Pakistan Network¤



Welcome Visitors to VUDESK Family .Join VUDESK For Free to Get more Access to study material and lot of infotainment stuff. Stay Connected!!

VUDESk ALL Subject CODES
Find Your Subject Code , Join Group And You Will Get ALL related Data
ACC - Fundamentals of auditing and business
ACC311ACC501
ACF - (Accounting And Finance Related)
ACF619ACFI619
COM - (Commerce Related)
COM619COMI619
ECO - (Economics Related)
ECO401 ECO402 ECO403 ECO404
ENG - (English Related)
ENG001 ENG101 ENG201 ENG301 ENG401
ETH201 - Ethics (for Non-Muslims)
ETH201
ISL201 - Islamic Studies
ISL201
IT - (Info Tech Related
IT000IT0001IT430IT619ITI619
MIS - (Project And Internship Report)
MIS619 MISI619MIS620 MISI620
PAD - (Public Administration Related)
PAD619 PADI619
PAK301 - Pakistan Studies
PAK301PAK302
PHY - (Physics Related)
PHY101 PHY301
PSC201 - International Relations
PSC201PSC401
SOC - (Socialogy Related)
SOC101 SOC401
STA - (Statistics and Research)
STA301 STA630
URDU - (Urdu Related)
URD101

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:

 

  1. Now we want to integrate both the User and Card implementation, and write the main function for the entire Electronic Card System.
  2. 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:

  1. Member User
  2. 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:

  1. Birth Cards
  2. Marriage Cards
  3. Friendship Cards
  4. Baraat Cards
  5. Walima Cards
  6. 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.




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.....

Post the vu code in last section.......i.e. in third class


take the just lec#33 for this assignment. 







Tags: 5, CS304, Object, Oriented, Programming-assignment

Views: 89

Replies to This Discussion

Advertise Here

Ab ye tu teek hai na maidam

Download Documents

Ap ko itna hi pata hai tu ap kiun upload nahi kartee madam 

Download the Attachment file....

Cs304 Assignment # 05 Idea Solution

Download Documents

ye idea solution be ghalt hai madam nay kaha hai

madam ap hi upload karai abi

simple lec parh lo ok.

abi lecture ka time hi nahi raha 

WAISY JIS DIN ASSIGNMENT ATI HAI TB HE SY TRY KIA KARAIN NA K END TIME MAIN BHAAGAM DOR N PARESHANI

RSS

*Member OF Week*

1. Duaa

punjab, Pakistan

=======================

Popular Social Events

=======================

+ Member of the Day

+ Member of the Week

+ Member of the Month

+ Member of the Year

+ Miss VU

+ Mr VU

+ Gold Members

+ Vote for Miss VU

+ Vote for Mr VU

+ Members Points Table

+ Profile Points Allocation

+ Competition Corner

+ Our Fans Club

+ Certificate Winners

---------------------------------------

௵ Scholars Of Desk

 Gold Members

 MR VU,S

௵ MISS VU,S

 Members Of Month

 Team Members

 Moderators 

  ADMINS

ʭAdministrationʭ

Senior Admin : Yasmeen

VUDESK Owner : Ismail Shah

DMCA.com

VUDESK GROUPS

© 2013   Created by ʭIsmail Shahʭ.

Badges  |  Report an Issue  |  Terms of Service

-->