Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a single C++ program that contains two functions: 1. First function: void FillAndPrintArray () // you have to figure out the parameters Pre-condition: The

Write a single C++ program that contains two functions:

1. First function: void FillAndPrintArray () // you have to figure out the parameters Pre-condition: The function takes an array of characters and its size as parameters Post-condition: The function fills the array with random characters between [A..Z] and prints them neatly on the screen.

2. Second function: void FindChar () Pre-condition: The function takes an array of characters, its size, and a character to search for as parameters Post-condition: The function displays how many times the character was found and the positions it was found at. Create the array in the main( ) and call both functions from the main as well. For example, if the random array has {X, A, B, X, D, B}, and we search for B, your program should display a message saying: B was found 2 times at index: 2 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

What is the nature of research and development costs?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago