C Assignment

Selesai Dipasang May 10, 2014 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

You are to write a program that: repeatedly requests the user to enter two sets of integers; calculates the difference between the two sets; prints the sets and the difference between them and a message indicating which set is larger.

A sample run of this program is shown at the bottom of the page, your program should print output in the same format.

Specific Requirements

Your solution must contain and use the following functions:

A function that reads a given number of integers from the keyboard into an array in dynamic memory and that returns a pointer to that array. The number of values to be read is given by the function's single integer parameter

A function that calculates and returns the sum of the values in an integer array. The function should have parameters for the array and its size.

A function that prints the contents of an integer array. The function should have parameters for the array and its size.

Sample Run:

Enter the number of values in the first set: 4

Enter 4 values

1

2

3

7

Enter the number of values in the second set: 3

Enter 3 values

1

2

3

set1 = {1,2,3,7}

set2 = {1,2,3}

set1 - set 2 = 7

The sum of set1 is larger

Press q to quit, any other key to continue: y

Enter the number of values in the first set: 5

Enter 5 values

5

4

6

3

1

Enter the number of values in the second set: 2

Enter 2 values

12

67

set1 = {5,4,6,3,1}

set2 = {12,67}

set1 - set 2 = -60

The sum of set2 is larger

Press q to quit, any other key to continue:

Enter the number of values in the first set: 3

Enter 3 values

4

5

6

Enter the number of values in the second set: 5

Enter 5 values

1

2

3

4

5

set1 = {4,5,6}

set2 = {1,2,3,4,5}

set1 - set 2 = 0

The sums of the sets are equal

Press q to quit, any other key to continue: q

Pemrograman C

ID Proyek: #5925042

Tentang proyek

47 proposal Proyek online Aktif May 12, 2014

Diberikan kepada:

it2051229

Hi, I would like to do this project please. Let me know if you are interested so I can start. Thanks.

$10 CAD dalam 1 hari
(549 Ulasan)
7.2

47 freelancer rata-rata menawar $24 untuk pekerjaan ini

kaloyan13

Hello, Can do your taks in 1h. Can start working after your award and create the milestone. Thanks...

$20 CAD dalam 1 hari
(458 Ulasan)
7.5
hbxfnzwpf

I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the lauguage is c++ under linux os. So, Lebih banyak

$105 CAD dalam 1 hari
(155 Ulasan)
7.1
szymszteinsl

I am professional C/C++/C#/Java programmer and web developer. I can do this project with highest satisfaction! Best Regards, Szymszteinsl

$60 CAD dalam 1 hari
(52 Ulasan)
6.6
renardpaul

Hello, expert in C programming here. I can implement for you this homework. The code will be fully commented and I will also be available for questions and clarifications. What C compiler and operating system you Lebih banyak

$110 CAD dalam 3 hari
(59 Ulasan)
5.9
srinichal

I can deliver the code in C and like to discuss further about the project specifications and needs .

$30 CAD dalam 1 hari
(58 Ulasan)
6.0
shkerin

I am the one who can help you, please let me try - 16 years of C programming for POSIX. ------------

$20 CAD dalam 1 hari
(13 Ulasan)
5.3
msabouri

Hello there, I can help you with this project. Please check out my profile for reviews on other jobs I've finished and contact me if you are interested. Thank you.

$30 CAD dalam 1 hari
(34 Ulasan)
5.1
nauman187

hi , i can help. please reply to discuss more thanks. .

$25 CAD dalam 1 hari
(33 Ulasan)
4.7
vietcompro

Hi there, I'm really interested in this project and I'm sure I can complete this one for you. Hope to have chance to work with you, thanks for your consideration! Regards.

$15 CAD dalam 1 hari
(48 Ulasan)
4.8
lokjaiswal12

Hello, I understood assignment's requirement. I can do this assignment. Please check my profile I have done many of this kind. Waiting for your response Regards Lokesh Jaiswal

$30 CAD dalam 1 hari
(22 Ulasan)
4.2
razorgeneral

Hi, I'm ready to deliver immediately.I've completed the project and can share the screenshot. Please message me and i can send it to you. In case you want other cases, let me know. Sorry that i'm not reducing the b Lebih banyak

$13 CAD dalam 0 hari
(5 Ulasan)
4.3
mvantuyl

I have been writing C programs for over 20 years and can have this project completed within one day of your acceptance of my bid. The code will contain comments and I will be happy to answer any questions you have.

$20 CAD dalam 1 hari
(46 Ulasan)
4.1
ducle

I have 5 years experience in C/C++. This assignment can be done easily. Please let me help you finish it. Thank you!

$25 CAD dalam 1 hari
(13 Ulasan)
3.8
VjCoder

Hi! This is very easy project and i have done many such projects before please see my profile for confirmation.... Contact me if interested...Thanks!

$30 CAD dalam 1 hari
(3 Ulasan)
3.8
junworried

Hi, I an interested in working with you on this project. I am comfortable with the project and it should take a short time to complete. Please send me details about any programs/ide that you prefer to use to try the Lebih banyak

$25 CAD dalam 0 hari
(6 Ulasan)
3.8
cijagani

I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, e-commerce websites and portals, payment gateways and customized web based applications. my aim to deliver quality products to our customers within Lebih banyak

$44 CAD dalam 3 hari
(5 Ulasan)
2.9
freelancerF77

hi from spain VERY EASY TO DO FOR US!! please contact with us if you need send us more details about the job best regards Mike www. ninosoftware. com

$15 CAD dalam 3 hari
(6 Ulasan)
3.0
Beacon09

Hi, I understand the requirements. I have recently completed similar C++ projects. Please review my profile. Please contact if you would like to consider me for this task. I can send the .cpp file which you could u Lebih banyak

$25 CAD dalam 1 hari
(4 Ulasan)
2.6
kimiyang

Hi I'm a software engineer from Singapore, I can finish your assignment quickly and with low budget, please drop me a message to discuss more

$15 CAD dalam 3 hari
(4 Ulasan)
2.6
BestDev007

Hi, I can do it immediately. .

$15 CAD dalam 0 hari
(4 Ulasan)
2.3