Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write program in C++ please! Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, in
Please write program in C++ please!
Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, in which a and b are integers and b is not O. Your program must be menu driven, allowing the user to select the operation (+, -, *, or /) and input the numerator and denominator of each fraction. Your program must have the following functions 1. Function menu: This function informs the user about the program's purpose, explains how to enter data, and allows the user to select the operation 2. Functions addFractions, subtractFractions, multiplyFractions, divideFractions: These functions take as input four integers representing the numerators and denominators of two fractions, performs the correct operation, and returns the numerator and denominator of the result. Your answer need not be in the lowest termsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started