Question: Q 1 / Write a program to input the words Starling in the string variable sx 1 and Sparrow in the string variable sx 2

Q1/ Write a program to input the words "Starling" in the string variable sx1 and "Sparrow" in the string variable sx2, then input either number 1 or 2 in the integer variable choosx. Next, apply the following using switch statement:
(15 Pt.)
1- If choosx =1, call a function that concatenates (adds)sx1 to the end of sx2, then prints sx2.(Show the result of sx2 separately, not in the program )
2-If choos =2, call a function that finds and prints the lengths of sx1 and sx2.
Turbo c++
 Q1/ Write a program to input the words "Starling" in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!