Question: Please help me complete the code after comment. I have just learnt about function and a little bit confused #include #include float getNumbers( float number1,
Please help me complete the code after comment. I have just learnt about function and a little bit confused
#include
#include
float getNumbers( float number1, float number2 );
int small_big( int small, int big );
std::string animal_show( std::string animal1, std::string animal2 );
int main()
{
std::cout << "Enter number from 1 to 10 ";
int numberFirst = small_big( 1, 10 );
std::cout << " Enter number from 12 to 15 : ";
int numberSecond = small_big( 12, 15 );
int Answer = getNumbers( numberFirst, numberSecond );
std::cout << std::endl << "Answer: " << Answer << std::endl;
std::string Pig = "Pig";
std::string Lion = "Lion";
std::stringEvil = Pig;
for( int i = 0; i < 5; i++ )
Evil = animal_show( Evil, Lion);
std::cout << Evil << std::endl;
return 0;
}
float getNumbers( float number1, float number2 )
{
//getNumber equal number1 plus number2
return 0;
}
int small_big( int small, int big )
{
// it will check value valid or not, it will return if it have right number
return 0;
}
{
std::string show_animals( std::string animal1, std::string animal2 )
// Take the second word and insert it two letter before the end of the first word.
// Example: Boo and Horse would be BHorseoo
return "";
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
