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
Step: 1
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...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