Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(only use Char array and loop and if/else condition.. don't use interception or vector because I am a beginner so make the program only beginner

(only use Char array and loop and if/else condition.. don't use interception or vector because I am a beginner so make the program only beginner level.)

Question 1

Question 2

image text in transcribed

Task 1. Declare and initialize an array of size 10 with the characters as shown below. data[10] A S 1 F LI 10 Write the following functionalities; 1. display - show the array on console 2. reverse_display - display the array in reverse order. II do not update the array 3. find_length - find and return the length of the received array (space is a character] 4. replace(int index, char new_character) - replace the element of the array on index with the new_character. You can take single character from user using cin.get(no) Write a main() that verifies the above functionalities. Task 2. Declare and initialize two array of size with the characters as shown below. Sentence2[300 am MUHAMMAD A Sad 10 Sentence2[300 AM Muhamma d A sad 10 Write a menu based from that do the followings; 1. converts the accepted array to small letters 2. compares if the arrays are same or not 3. show the number of words in the received sentence 4. Write a main() that convers the array in to small letters and checks if both are same of not. In the end, display how many words are there in both the arrays

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

6. Describe to a manager the different types of distance learning.

Answered: 1 week ago