# Write a program to do rational number arithmatic, representing each rational number as a class that has instance variables for the numerator and the denomonator

Not what you're looking for?

Write a program to do rational number arithmatic, representing each rational number as a class that has instance variables for the numerator and the denomonator. The program should read and display all rational numbers in the format a/b, or simply a if the denominator is 1.

##### Purchase this Solution

##### Solution Summary

Write a program to do rational number arithmatic, representing each rational number as a class that has instance variables for the numerator and the denomonator.

##### Purchase this Solution

##### Free BrainMass Quizzes

##### Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

##### C++ Operators

This quiz tests a student's knowledge about C++ operators.

##### Javscript Basics

Quiz on basics of javascript programming language.

##### Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

##### Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.