Intialize the pointer array with the sequence of upper

Assignment Help Basic Computer Science
Reference no: EM132003032

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

Reference no: EM132003032

Questions Cloud

Currency format for all money outputs : Note: Use the Currency Format for all money outputs and assume that the tax rate is 8.75%.
Explain three ways that these riots supported the myth : This action set off a chain reaction that led to draft riots, which demonstrated Northern racism and casualties between blacks and whites.
Write program that generates an array filled : Write program that generates an array filled up with random positive integer number ranging from 15 to 20, and display it on the screen.
Explain the list of driving forces that led to the civil war : Describe two (2) outcomes of the 3/5ths Compromise, Missouri Compromise of 1820, Compromise of 1850, Kansas-Nebraska Act.
Intialize the pointer array with the sequence of upper : 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
Coupon bond paying semiannual interest : A coupon bond paying semiannual interest is reported as having an ask price of 119% of its $1,000 par value. what is the invoice price of the bond?
What will your total dividend amount be in year two : You own 1,000 shares of stock in Avondale Corporation. What will your total dividend amount be in year two?
Does the civil war have any value in todays society : Does the Civil War have any value in today's society or is it simply buried in America's historical past?
Two method headers appear in a single program : These two method headers appear in a single program: //public static int promptForInput(ref string prompt)

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd