AppendixC_upperlower

Download Category:

AppendixC_upperlower.zip - (3.24 MB)
[
AppendixC_upperlower/AppendixC_upperlower.sln
AppendixC_upperlower/AppendixC_upperlower.suo
AppendixC_upperlower/AppendixC_upperlower/
AppendixC_upperlower/AppendixC_upperlower/AppendixC_upperlower.cpp
AppendixC_upperlower/AppendixC_upperlower/AppendixC_upperlower.vcxproj
AppendixC_upperlower/AppendixC_upperlower/AppendixC_upperlower.vcxproj.filters
AppendixC_upperlower/AppendixC_upperlower/AppendixC_upperlower.vcxproj.user
AppendixC_upperlower/AppendixC_upperlower/Debug/
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.exe.intermediate.manifest
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.lastbuildstate
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.log
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.obj
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.vcxprojResolveAssemblyReference.cache
AppendixC_upperlower/AppendixC_upperlower/Debug/AppendixC_upperlower.write.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/cl.command.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/CL.read.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/CL.write.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/link.command.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/link.read.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/link.write.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/mt.command.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/mt.read.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/mt.write.1.tlog
AppendixC_upperlower/AppendixC_upperlower/Debug/vc100.idb
AppendixC_upperlower/AppendixC_upperlower/Debug/vc100.pdb
AppendixC_upperlower/Debug/
AppendixC_upperlower/Debug/AppendixC_upperlower.exe
AppendixC_upperlower/Debug/AppendixC_upperlower.ilk
AppendixC_upperlower/Debug/AppendixC_upperlower.pdb
AppendixC_upperlower/ipch/
AppendixC_upperlower/ipch/appendixc_upperlower-f2e405dc/
AppendixC_upperlower/ipch/appendixc_upperlower-f2e405dc/appendixc_upperlower-e154f27c.ipch
AppendixC_upperlower/Question.txt
AppendixC_upperlower/Screenshot_1.jpg
]

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 is Aa; the second element of the array is Bb; 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 to replace every other element within the original array with a lowercase x. 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

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.