C Assignment

Completado Publicado May 10, 2014 Pagado a la entrega
Completado Pagado a la entrega

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

Programación en C

Nº del proyecto: #5925042

Sobre el proyecto

47 propuestas Proyecto remoto Activo May 12, 2014

Adjudicado a:

it2051229

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

$10 CAD en 1 día
(549 comentarios)
7.2

47 freelancers están ofertando un promedio de $24 por este trabajo

kaloyan13

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

$20 CAD en 1 día
(458 comentarios)
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, Más

$105 CAD en 1 día
(155 comentarios)
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 en 1 día
(52 comentarios)
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 Más

$110 CAD en 3 días
(59 comentarios)
5.9
srinichal

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

$30 CAD en 1 día
(58 comentarios)
6.0
shkerin

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

$20 CAD en 1 día
(13 comentarios)
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 en 1 día
(34 comentarios)
5.1
nauman187

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

$25 CAD en 1 día
(33 comentarios)
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 en 1 día
(48 comentarios)
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 en 1 día
(22 comentarios)
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 Más

$13 CAD en 0 días
(5 comentarios)
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 en 1 día
(46 comentarios)
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 en 1 día
(13 comentarios)
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 en 1 día
(3 comentarios)
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 Más

$25 CAD en 0 días
(6 comentarios)
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 Más

$44 CAD en 3 días
(5 comentarios)
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 en 3 días
(6 comentarios)
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 Más

$25 CAD en 1 día
(4 comentarios)
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 en 3 días
(4 comentarios)
2.6
BestDev007

Hi, I can do it immediately. .

$15 CAD en 0 días
(4 comentarios)
2.3