Intialize the pointer array with the sequence of upperlower


Need help creating this C++ program.

Create a single C++ program that performs the following:

  • Intialize the pointer array with the sequence of upper/lower case alphabet pairs,Aa Bb Cc .... Xx Yy Zz.(The first element of the array isAa; the second element of the array isBb; etc.)
  • Using a for loop, print the contents of the array.

The output should appear exactly as follows with heading and single spaces between the elements:

PRINTING CONTENTS OF ARRAY

==================================

Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz

  • Change the program logic to prompt you for a position within the array that coincides with the appropriate letter pair. Your program should be able to duplicate the following session:

Select the number that coincides with the letter pair.

For example, the number 7 should display the pair Gg.

Enter a number between 1 and 26: 4

The number you selected: 4

The pair related to this number: Dd

  • Write the code toreplaceevery other element within the original array with a lowercasex. The output should appear exactly as follows with heading and single spaces between the elements:

PRINTING CONTENTS OF ARRAY and adding x to every other element

========================================================

     Aa x Cc x Ee x Gg x Ii x Kk x Mm x Oo x Qq x Ss x Uu x Ww x Yy x

  • Write the code that will display only the even index elements within the array. The output should appear exactly as follows with heading:

PRINTING CONTENTS OF ARRAY using the MOD option

=====================================================

Even Index Element = 0 Contents of Element within Array is = Aa

Even Index Element = 2 Contents of Element within Array is = Cc

Even Index Element = 4 Contents of Element within Array is = Ee

Even Index Element = 6 Contents of Element within Array is = Gg

Even Index Element = 8 Contents of Element within Array is = Ii

Even Index Element = 10 Contents of Element within Array is = Kk

Even Index Element = 12 Contents of Element within Array is = Mm

Even Index Element = 14 Contents of Element within Array is = Oo

Even Index Element = 16 Contents of Element within Array is = Qq

Even Index Element = 18 Contents of Element within Array is = Ss

Even Index Element = 20 Contents of Element within Array is = Uu

Even Index Element = 22 Contents of Element within Array is = Ww

Even Index Element = 24 Contents of Element within Array is = Yy

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Intialize the pointer array with the sequence of upperlower
Reference No:- TGS02797496

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)