Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C + + function named whole ( ) that returns the integer part of any number passed to the function. ( Hint: Assign
Write a function named whole that returns the integer part of any number passed to the function. Hint: Assign the passed argument to an integer variable. Include the function written in a working program. Make sure your function is called from main and correctly returns a value to main Have main use a cout statement to display the returned value. Test the function by passing three data to it integer double, negative When you're confident that the whole function written for works correctly, save it in a namespace and a personal library of your choice in the C: drive. Submit code with three sample runs plus cpp and namespace files.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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