C++

Completed Posted Nov 27, 2001 Paid on delivery
Completed Paid on delivery

Synopsis In this project, you'll write code that generates all subsets of a set of chars. The user prepares a file with one char per line. All the chars are distinct, i.e. no char appears on two different lines. Your program reads in this file via the standard input, sorts the chars into ascending order, and then prints out all possible subsets, one subset per line, to standard output. Hints The inequality operators are defined for chars, and you can use them for the sorting part of the project. You may use any sorting technique you like to sort the data, but you must code one yourself. Don't use a standard library function to sort. You can print out the subsets in any order you want, but each subset must itself be sorted. You may want to use vector to store the chars. Also you can iterate templates if you like. For example, if you want to create a vector that contains an integer vector in each position, you can use vector< vector > x; //The symbols > > must be separated by a space in your code, so that //the compiler doesn't interpret them as an input operator. Don't forget that the empty set is also a subset, as well as the whole set itself Files Here's a short program that illustrates how the comparison operators for chars behave. They behave pretty much exactly like you'd expect. For example, a**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">< [url removed, login to view] z k kz f fz fk fkz a az ak akz af afz afk afkz pegasus%</a>**

## **<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">Deliverables</a>**

**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">do what it tell you to do and nothig else</a>**

## **<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">Deadline information</a>**

**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">need it done by 11/30/2001</a>**

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2832807

About the project

13 proposals Remote project Active Dec 1, 2001

Awarded to:

sammyleong

See private message.

$17 USD in 14 days
(80 Reviews)
5.2

13 freelancers are bidding on average $28 for this job

oleg21

See private message.

$11.9 USD in 14 days
(137 Reviews)
7.0
cinterosystems

See private message.

$17 USD in 14 days
(139 Reviews)
5.6
sanatanvw

See private message.

$21.25 USD in 14 days
(72 Reviews)
5.5
ij1402

See private message.

$17 USD in 14 days
(37 Reviews)
4.6
vw139994vw

See private message.

$34 USD in 14 days
(60 Reviews)
4.5
belovlabs

See private message.

$21.25 USD in 14 days
(33 Reviews)
4.0
Meg341

See private message.

$10.2 USD in 14 days
(14 Reviews)
3.5
coolbeanzco

See private message.

$12.75 USD in 14 days
(12 Reviews)
2.1
consultantvw

See private message.

$42.5 USD in 14 days
(2 Reviews)
1.9
micutusl

See private message.

$12.75 USD in 14 days
(3 Reviews)
1.8
bhaskarjoshi

See private message.

$63.75 USD in 14 days
(4 Reviews)
1.7
anua3

See private message.

$85 USD in 14 days
(0 Reviews)
0.0