Question
#include //#include Fraction.h using namespace std; void Menu::mainmenu() { int option; do { cout cout > option; switch(option) { case 1: initializingMenu(); break; case 2:
#include //#include "Fraction.h" using namespace std;
void Menu::mainmenu() {
int option;
do { cout
cout > option;
switch(option) { case 1: initializingMenu(); break;
case 2: addingMenu(); break;
case 3: subtractingMenu(); break;
case 4: multiplyingMenu(); break;
case 5: dividingMenu(); break;
case 6: printingMenu(); break;
case 7: cout
default: cout
return; }
void Menu::initializingMenu() {
int option;
ok = 0;
do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
default: cout
} while (option != 3);
return; }
void Menu::addingMenu() {
int option;
if(ok == 1) {
do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
case 4: cout
default: cout
} else { cout
return; }
void Menu::subtractingMenu() {
int option;
if(ok == 1) {
do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
case 4: cout
default: cout
return; }
void Menu::multiplyingMenu() {
int option; if(ok == 1) {
do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
case 4: cout
default: cout
} while (option != 4); } else { cout
return; }
void Menu::dividingMenu() {
int option;
if(ok == 1) { do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
case 4: cout
default: cout
} while (option != 4); } else { cout
return; }
void Menu::printingMenu() {
int option; if(ok == 1) {
do { cout
cout > option;
switch(option) { case 1: cout
case 2: cout
case 3: cout
default: cout
} while (option != 3); } else { cout C++ ASSIGNMENT SOURCE CODE TO BE UPDATED IS ATTACHED AT THE END OF THE SAMPLE OUTPUT SHOWN BELOW (NOTE THE LESS OBJECT YOU NEED THE BETTER) And remember you need 1. Constructor from Dynamic object 2. Constructor from fraction tmp 3. Copy of constructor ( returns a copy of tmp)
Step 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