Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 terms

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

Students also viewed these Databases questions