Write a program that: reads in one number (an integer) from the user and writes the square of the entered value. • Get the input with a function called getNumber() • Display the result with a function called showAnswer(int answer)
(Not rated)
(Not rated)
Write a program that: reads in one number (an integer) from the user and writes the square of the entered value.
• Get the input with a function called getNumber()
• Display the result with a function called showAnswer(int answer)
• Put the getNumber and showAnswer functions in a file called inOut.cpp
• Create a header file called inOut.h to allow main() to access the functions without forward declarations
• Put your main() function into a file called w01a.cpp
• Put a comment at the top of your main with your name and today’s date:
11 years ago
the answer in c++
NOT RATED
Purchase the answer to view it

- w01a.cpp