Answered step by step
Verified Expert Solution
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
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 arraysStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started