Make a C program
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Make a C program
![To know what arrays are
• Implementa program to apply array manipulation
And apply how to declare arrays
• Understand the meaning of the ampersand & symbol
Objectives:
• Understand the meaning of the asterisk * symbol
• Declare, define, and initialize arrays
• Write programs that access data in the array list
• Use arrays as function parameters and return types
Description
Create an array of 15 integers. Add all elements located
at ODD index positions and sum also all numbers located at EVEN(Assume
zero index is even) index positions in the linear array. The user's will be the one to input
each
item in the array of 15 elements. Display also the inputted integers
in the array. Given the sample layout w/ test data below:
Sample input/output:
Enter 15 integers in the array:
Qurol1]: -5
Numl2): 15
Num(3]: 20
NumL4]: 2
Qum(5): 9
Num(6]: -3
Num7): 25
Num(8]: 30
Num19]:-18
Mum(10]:-10
Nuro[11]: 7
Nuo(12]: 18
Qurol13]: 1
Qum(14]: 9
Inputted elements in the ARRAY are:
Durol0): 10
Dum1]: -5
Numl21: 15
Num(3]: 20
Nuol4]: 2
Dum(5): 9
Nurol6): -3
Num7): 25
Durol8): 30
Duml9]:-18
Mum[10]:-10
Nuro[11]: 7
Num(12]: 18
Nuro[13]: 1
Nuro[14]: 9
Sum of all items at ODD [index]: 39
Sum of all items at EVEN[index]: 71](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5efc91db-db7b-479e-abbb-a1d3ad98ded0%2F1f948d37-6bc0-4cc1-9d46-8550d28adea2%2F1c4hv_processed.jpeg&w=3840&q=75)
Transcribed Image Text:To know what arrays are
• Implementa program to apply array manipulation
And apply how to declare arrays
• Understand the meaning of the ampersand & symbol
Objectives:
• Understand the meaning of the asterisk * symbol
• Declare, define, and initialize arrays
• Write programs that access data in the array list
• Use arrays as function parameters and return types
Description
Create an array of 15 integers. Add all elements located
at ODD index positions and sum also all numbers located at EVEN(Assume
zero index is even) index positions in the linear array. The user's will be the one to input
each
item in the array of 15 elements. Display also the inputted integers
in the array. Given the sample layout w/ test data below:
Sample input/output:
Enter 15 integers in the array:
Qurol1]: -5
Numl2): 15
Num(3]: 20
NumL4]: 2
Qum(5): 9
Num(6]: -3
Num7): 25
Num(8]: 30
Num19]:-18
Mum(10]:-10
Nuro[11]: 7
Nuo(12]: 18
Qurol13]: 1
Qum(14]: 9
Inputted elements in the ARRAY are:
Durol0): 10
Dum1]: -5
Numl21: 15
Num(3]: 20
Nuol4]: 2
Dum(5): 9
Nurol6): -3
Num7): 25
Durol8): 30
Duml9]:-18
Mum[10]:-10
Nuro[11]: 7
Num(12]: 18
Nuro[13]: 1
Nuro[14]: 9
Sum of all items at ODD [index]: 39
Sum of all items at EVEN[index]: 71
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY