Question: Code will be graded on both performance and elegance metrics. For instructions on setting up C++ on your personal computer, please reference the C++ Setup

 Code will be graded on both performance and elegance metrics. For

instructions on setting up C++ on your personal computer, please reference the

"C++ Setup Instructions" document in the Canvas lessons repository Exercise #1-Rational Problem

Code will be graded on both performance and elegance metrics. For instructions on setting up C++ on your personal computer, please reference the "C++ Setup Instructions" document in the Canvas lessons repository Exercise #1-Rational Problem (25pts) Rational Numbers Let p and q be integers, with q being non-zero integer. A rational number n is a number which can be expressed as the following: It should be noted that any integer can be expressed as a rational number, since the integer q may be equal to 1. As an example the double value in C++ 0.95 can be expressed as the following rational number: 19 20 Arithmetic operations can be performed on rational numbers. For instance two rational numbers can be added, subtracted from, multiplied and divided. When adding and subtracting two rational numbers, the denominators first need to be reduced to a common denominator. As an example: 5 1 152 17 4 6 12 12 When multiplying two rational numbers, the numerators and the denominators are multiplied separately. Using integers a, b, c, and d as an example When dividing two rational numbers, the second rational number is first inverted (known as its reciprocal) and then is multiplied with the first rational number like above Last Modified: 10/9/2018

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!