Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java

rational

  • Category : JSP/Java
  • Tags :
  • Update : 2018-03-10
  • Size : 1kb
  • Downloaded :0次
  • Author :可爱的你ff
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Create a fractional class Rational, used to perform arithmetic operations for fractions, and write a program to test the class. (1) the class has two member variables, that is, molecules and denominator, all of which are integral types (2) define a constructor to initialize the class object. The constructor must reduce the input parameters. For example, if a given fraction is 2/4 (i.e. the molecule is 2, the denominator is 4), we need to reduce it to 1/2, and then store it in the corresponding member variable, that is, the molecule is 1 and the denominator is 2. (3) a add member function is defined to implement the addition of two fractions, and the result should also be reduced. (4) a sub member function is defined to implement a subtraction of two fractions, and the result is reduced form.
Packet file list
(Preview for download)
FilenameSizeUpdate
rational 0 2018-03-10
rational\Rational.java 2343 2018-03-10
rational\Test.java 585 2018-03-10
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
DSSZ is the largest source code store in internet!
Contact us :
1999-2046 DSSZ All Rights Reserved.