An array is a data structure that contains a group of element. Typically these elements are all of the same data type such as an integer or string. (a) Write the code to perform the following tasks: i. Declare an array mark of 5 components of type int.   ii. Initialize array mark to the following values: 19, 19, 8, 17, 9   iii. Take input from the user and insert in second element.   iv. Print the adding value of third element and fourth element.   v. Print sum value of all elements.   vi. Print the lowest value. ANSWER NEEDED IN C++

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

An array is a data structure that contains a group of element. Typically these elements are all of the same data type such as an integer or string.

(a) Write the code to perform the following tasks:

i. Declare an array mark of 5 components of type int.

 

ii. Initialize array mark to the following values: 19, 19, 8, 17, 9

 

iii. Take input from the user and insert in second element.

 

iv. Print the adding value of third element and fourth element.

 

v. Print sum value of all elements.

 

vi. Print the lowest value.

ANSWER NEEDED IN C++

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,