Question: Write a full C++ program that takes 2 inputs from the user. The first is a number that is stored in variable X of type

Write a full C++ program that takes 2 inputs from the user. The first is a number that is stored in variable X of type double. The second is a string names inputstring. Then use predefined function to do the following... a. Output the results of X b. Output the result of X2 c. Output the result of [X] d. Output the result of X+X2 e. Check if inputstring is not empty using the appropriate class member function then make it empty using another member function. f. Print the now empty inputstring
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
