Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include //#include Fraction.h using namespace std; void Menu::mainmenu() { int option; do { cout cout > option; switch(option) { case 1: initializingMenu(); break; case 2:

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

image text in transcribed

#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

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

Click all the boxes that ap g(x)=x^(2)-1

Answered: 1 week ago