Answer to Question #85137 in C++ for Jessica Vidal

Question #85137
Write a program that computes the results of integer and floating-point division, where variables a, and b are declared as integers, c and d are declared as floating-point numbers, and all are user-specified.

Integer division is defined as whole-number division. For example, 1/2 (as integers) = 0. Whereas, if we specified 1/2 (as "floats"; i.e., floating-point numbers), the result is 0.5. In C++, the result of an arithmetic operation (e.g., whether the computer computes the result as an integer or as a float) is specified by the data type.
Your task is to make edits within main such that, when run, the program produces the following console output:
Enter two integers: [user-specified value for a] [user-specified value for b]
Integer division: [a]/[b] = [a]/[b]
Floating-point division: [c]/[d] = [c]/[d]
Mixed-type division: [a]/[d] = [a]/[d]
Mixed-type division: [c]/[b] = [c]/[b]
1
Expert's answer
2019-02-13T01:12:11-0500
Dear Jessica Vidal, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS