Question: solve in c + + without using any other libraies Add number 1 _ int and number 2 _ int together and print the result

solve in c++ without using any other libraies Add number1_int and number2_int together and print the result as an integer value.
Subtract number1_float from number2_float and print the result as a floating-point value.
Multiply number1_int by number1_float and print the result as an integer value.
Divide number1_int by number2_int and print the result as an integer and a floating-point value (Ask yourself: What happens when you divide an integer by an integer? Does the result change because you print it as a floating-point number?).
Divide number1_int by number2_float and print the result as an integer and a floating-point value (Ask yourself: How does this compare to the previous operations? We are now dealing with mixed data types).
Explicitly cast number1_int as a floating-point value and divide by number2_int. Print the result as a floating-point value.
Try to mod number1_float by number2_float. Does the program compile? If not, fix it so that it does.
Determine if number1_int and number2_int are even or odd. Print 0 if even and 1 if odd. You may not use if statements. Use the mod operator instead.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!