Write C++ statements to do the following: a) Declare an array alpha of 15 components of type

Question:

Write C++ statements to do the following:
a) Declare an array alpha of 15 components of type int.
b) Output the value of the tenth component of the array alpha.
c) Set the value of the fifth component of the array alpha to 35.
d) Set the value of the ninth component of the array alpha to the sum of the sixth and thirteenth components of the array alpha.
e) Set the value of the fourth component of the array alpha to three times the value of the eighth component minus 57.
f) Output alpha so that five components per line are printed.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Fundamentals of Database Systems

ISBN: 978-0136086208

6th edition

Authors: Ramez Elmasri, Shamkant Navathe

Question Posted: