Find Jobs
Hire Freelancers

Array Class

$30-5000 USD

已完成
已发布超过 21 年前

$30-5000 USD

货到付款
Hello and thanks for the help. Unfortunately, I am under some time constraints. I need this completed no later than 9 Sep 02. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. Create class called IntegerSet. Each object of class IntegerSet can hold integers in the range 0 through 100. A set is represented internally as an array of ones and zeros. Array element a[i] is 1 if integer I is in the set. Array element a[j] is 0 is integer j in not in the set. The default constructor initializes a set to the so-called “empty set,?? i.e. a set whose array representation contains all zeros. Provide member functions for the common set operations. For example, provide a unionOfIntegerSets member function that creates a third set which is the set-theoretic union of two existing sets (i.e. an element of the third set’s array is set to 1 if that element 1 in either or both of the existing sets, and an element of the third set’s array is set to 0 if that element is 0 in each of the existing sets). Provide an intersectionOfIntegerSets member function that creates a third set which is the set-theoretic intersection of two existing sets (i.e., an element of the third set’s array is set to 0 if that element is 0 in either or both of the existing sets, and an element of the third set’s array is set to 1 if that element is 1 in each of the existing sets). Provide an insertElement member function that inserts a new integer k into a set (by setting a[k] to 1). Provide a deleteElement member function that deletes integer m (by setting a[m] to 0). Provide a setPrint member function that prints a set as a list of numbers separated by spaces. Print only those elements that are present in the set (i.e., their position in the array has a value of 1). Print ---for an empty set. Provide an isEqualTo member function that determines if two sets are equal Provide an additional constructor to take five integer arguments which can be used to initialize a set object. If you want to provide fewer than five elements in the set, use default arguments of -1 for the others. Now write a driver program to test your IntegerSet class. Instantiate several IntegerSet objects. Test that all your member functions work properly. ## Platform I just need it to run on windows platform. I need three files: header, cpp and the driver file.
项目 ID: 2868575

关于此项目

10提案
远程项目
活跃22 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$17 USD 在14天之内
5.0 (4条评论)
1.6
1.6
10威客以平均价$18 USD来参与此工作竞价
用户头像
See private message.
$12.75 USD 在14天之内
4.9 (176条评论)
6.8
6.8
用户头像
See private message.
$21.25 USD 在14天之内
4.9 (169条评论)
5.9
5.9
用户头像
See private message.
$21.25 USD 在14天之内
5.0 (47条评论)
4.5
4.5
用户头像
See private message.
$4.25 USD 在14天之内
4.8 (62条评论)
4.2
4.2
用户头像
See private message.
$5.10 USD 在14天之内
4.5 (17条评论)
2.4
2.4
用户头像
See private message.
$21.25 USD 在14天之内
3.8 (3条评论)
2.1
2.1
用户头像
See private message.
$25.50 USD 在14天之内
0.0 (1条评论)
0.0
0.0
用户头像
See private message.
$42.50 USD 在14天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$12.75 USD 在14天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
5.0
1
会员自7月 12, 2002起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。