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 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
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
Get step-by-step solutions from verified subject matter experts
