Question: 2- Write a C++ program to check if the user enters an integer number and the print the square root of that integer. The

2- Write a C++ program to check if the user enters an integer number and the print the square root of that

2- Write a C++ program to check if the user enters an integer number and the print the square root of that integer. The user can enter any character and not only a digit (0,1.....9). The correct forms of integer numbers are: +500, -700, 15, 20. 3- Ask the user to enter the following statement: "I like programming in C++ because C++ is fun and challenging and there are plenty of resources online that I can learn from?" a- How many "C++" word in the statement? b- Delete "challenging" word from the statement. c- Delete '?' from the end of the statement. d- Add To the end of the statement. e- Replace the first "and" in the statement by "language". f- Save the word "resources" in a new string. g- How many characters in the string? h- Are the first six characters in the statement equal to "I like"? i- Delete the entire statement.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

2 Write a C program to check if the user enters an integer number and the print the square root of that integer The user can enter any character and n... View full answer

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 Programming Questions!