Write a program in a cpp file called countCharacter_LastNameFirstName.cpp that c
ID: 3664869 • Letter: W
Question
Write a program in a cpp file called countCharacter_LastNameFirstName.cpp that counts the number of whitespace in the inputs. A whitespace can be a space (' ') or a tab (' '). Also write the output to a file call count_LastNameFirstName.txt and the command prompt window.Your output should match the output shown below.
Please enter your text Hello This COSC 1437 our input was Hello! This is COSC 1437 1S The number of space s: 2 The number of tab s' 2 he total number of whitespaces were 4 Press any key to continue . . .Explanation / Answer
/*
* First C++ program that says hello (hello.cpp)
*/
#include <iostream> // Needed to perform IO operations//
using namespace std;
int main() { // Program entry point//
cout << "Hello!" This is COSC 1437< endl; // Say Hello//
return 0; // Terminate main()//
} // End of main function//
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.