Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ program (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

c++ program (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 F A L 10 Write the following functionalities; 1. display - show the array on console 2. reverse_display - display the array in reverse order. I 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[30 am Muha Mm Ad As a d 10 Sentence2[30 AM Muhammad Asa do 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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

ISBN: 1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

1. Which position would you take?

Answered: 1 week ago