C Assignment
$10-30 CAD
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
ID Proyek: #5925042
Tentang proyek
Diberikan kepada:
Hi, I would like to do this project please. Let me know if you are interested so I can start. Thanks.
47 freelancer rata-rata menawar $24 untuk pekerjaan ini
Hello, Can do your taks in 1h. Can start working after your award and create the milestone. Thanks...
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
I am professional C/C++/C#/Java programmer and web developer. I can do this project with highest satisfaction! Best Regards, Szymszteinsl
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
I can deliver the code in C and like to discuss further about the project specifications and needs .
I am the one who can help you, please let me try - 16 years of C programming for POSIX. ------------
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.
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.
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
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
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.
I have 5 years experience in C/C++. This assignment can be done easily. Please let me help you finish it. Thank you!
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!
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
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
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
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
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