473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

please..help me to solve it..

hello....please help me to create program below this...thank you..

Lets agree on the following notations:
a) You may assume that all operators are given in pre-fix notation.
Its means we write UNION(a, b) instead of (a UNION b)
b) the operators are: UNION, INTER, -, ~
c) The user keys in the universe of discourse and variables first. (Or you ask for it.)

Sample Input: U = {1, 2, 3, 4, 5}
A = {1,2,3}
B = {4,5}
C = {3,5}
UNION(A,-(B,C))
Output: {1,2,4}
Sep 7 '06 #1
6 1644
Edems
3
dear
you did not specify the format of the program. how it should execute( the execution flow) and other particulars. please do so in details and lets see how to do that
Sep 7 '06 #2
Banfa
9,065 Expert Mod 8TB
You should attempt this yourself and then post your attempt and we will be happy to help you get it working.

When approaching a problem like this it is a mistake to try and consider it all in 1 lump, do it piece meal in small work units and you will find it easier.

For instance start by working out how you are going to get and store the input data.

Once you have done that then you can work on how you will manipulate that data in the desired manor.

Are you using C or C++. If C++ then I would have though a SET class would be in order.
Sep 7 '06 #3
aia
4
plaes say what you want to do

or what is the aim of this program
plaesa say more details or what your proplem in this program and all will help you to execute your program
so say what you want or what's your proplem
Sep 8 '06 #4
hello everybody....
first of all...i would like to say thanks for edems,banfa and aia.
Actually i should write small input routines asking the necessary data from the user and formatting the output as desired.
The programming language for this project has to be C++. The project specifications is write a program able to compute operations over sets.

now, my program still in process and i use array tu do this program...am i rite?
Sep 8 '06 #5
hello everyone..
first of all...i would like to say thanks for edems,banfa,aia.
Actually the project specifications is write a program able to compute operations over sets. i should write small input routines asking the necessary data from the user and formatting the output as desired.

The programming language for this project has to be C++ and my program still in process.The method that i used it is array...am i rite?...

thank you...
Sep 8 '06 #6
Banfa
9,065 Expert Mod 8TB
Well, the set is going to have to be an array of integers at some level but I would be inclined to encapsulate it in a class

Expand|Select|Wrap|Line Numbers
  1. class Set
  2. {
  3. public:
  4.     Set();
  5.  
  6. private:
  7.     int *m_SetMembers;
  8.     int m_ArraySize;
  9.     int m_UsedEntries;
  10. }
  11.  
Of course you may be able to sub-class from the C++ std class set<> and just add methods for the operations you need to carry out.
Sep 8 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Alan Bashy | last post by:
Please, guys, In need help with this. It is due in the next week. Please, help me to implement the functions in this programm especially the first three constructor. I need them guys. Please, help...
7
by: tyler_durden | last post by:
thanks a lot for all your help..I'm really appreciated... with all the help I've been getting in forums I've been able to continue my program and it's almost done, but I'm having a big problem that...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
7
by: Mat | last post by:
I am developping multi-user windows application. i use Access database. user edit, add and delete data from database. Request: when an item is deleted ,added or modified by an user, all others...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
5
by: settyv | last post by:
Hi, Below is the Javascript function that am trying to call from asp:Button control. <script language="javascript"> function ValidateDate(fromDate,toDate) { var fromDate=new Date();
1
by: shapper | last post by:
Hello, For the past hours I have been trying to solve a problem which is driving me crazy. I have to different codes where the problem to solve is the same: CODE 1 (Transforms a XML...
0
by: monkeycool | last post by:
This is for my intro to computer programming class. Please help me solve these 2 assignments: For the following items, you are to write the source code solution to each problem using the...
1
by: rocksoft | last post by:
Hi, i got error "class not registered" when i try to create web setup and deployment project to my web application. i'm used Asp.net and c# to my application, i created web setup and deployment...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.