Math function methods

This assignment tests your ability to use function methods of the Math class and to invent a short algorithm.

Write a Math function program. The user inputs two numbers, and the program displays the largest and the smallest and divides the first number by the second number. The program displays the quotient and remainder from the division.

Hint: You can compute the remainder with a two-step algorithm that uses the Floor function. You can plan your algorithm by working through a few examples by hand and paying attention to the steps you take in computing the remainder.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.