C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 27th, 2006, 12:50 PM
xboy xboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 1 xboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 39 sec
Reputation Power: 0
Can any one help me abt this??

Option 1
a)
1) Design a class in C++ that represents complex numbers and supports important operations between them, such as, addition, subtraction, multiplication and division:
a. Describe in you own words the structure of your designed class (private/public members, etc…)
b. Give the semantic (meaning ) of every class feature
c. How does this design support information hiding?
d. Provide the header file (class declaration – complex.h)
2) Implement each member function of this class in a separate file (compleximp.cpp).
3) Write e program that uses the class Complex designed above, to work with complex number. Your program should reflect (make use of) all public members inside the designed class.

b)
1) Write an application that illustrates inheritance concept by using the following classes:
- Create a class called Book. Information about number of pages and operations such as set the number of pages and get the number of pages should be included.
- A dictionary IS a Book. Create a second class, called Dictionary that in addition to information above, provides also information about the total number of definitions and computes the ratio: definitions/pages, sets the number of definitions to some parameter value and gets the number of definitions.
- Create an application that creates references to both Book and Dictionary classes, given some number of pages and definitions received from the user. That is, the execution should look something like this, but of course you can modify it:
//if a book has to be created
Please enter the number of pages for the first book:
300
Number of pages in this book is 300
//if a dictionary has to be created
Please enter the number of pages //Dictionary IS a book
250
Please enter the number of definitions:
2000
Number of pages: 250
Number of definitions: 5000
Definitions per page: 20

Reply With Quote
  #2  
Old March 27th, 2006, 03:45 PM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2Folding Points: 909006 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Yeah, your teacher should be able to answer most questions...

We have this strange thing here about people wanting us to do their homework, you see...
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 280

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Can any one help me abt this??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT