SlideShare a Scribd company logo
Building off of the Fraction class you wrote at the beginning of the semester, do the following:
1. Overload the >> operator for reading in from a data file. Make sure the Fraction is reduced
after it is read in
2. Read the FractsToVector.txt data file into a Vector of Fractions and return that vector sorted to
the main function
3. Read the FractsToList.txt data file into a List of Fractions and return that list sorted to the
main function
4. Now pass the sorted Vector and the sorted List into a Merge function. The Merge function will
then combine the two into a new Vector of Fractions. Make sure the new Vector does NOT
contain any duplicates. Return that new vector of Fractions sorted back to the main function.
5. Print out the first Vector, the List and the merged Vector to the screen
The data file is in the format of 2 integers on each line representing the numerator and
denominator. See the 2 attached files to see what I mean. Submit your Fraction.cpp and
Fraction.h and then your main.cpp files.
FractsToVector.txt: 12 3 5 6 4 5 -6 7 22 5 7 6 8 12 6 4 2 2 9 4 7 9
FractsToList.txt: 4 5 6 7 6 4 2 2 9 4 6 7 -8 22 125 75 33 4 -9 5 23 55 6 6 1 3 34 6 5 65 4 114

More Related Content

Similar to Building off of the Fraction class you wrote at the beginning of the s.pdf

Nrite the definition of the function insertBack( ) as a member functio.pdf
Nrite the definition of the function insertBack( ) as a member functio.pdfNrite the definition of the function insertBack( ) as a member functio.pdf
Nrite the definition of the function insertBack( ) as a member functio.pdfEdwardw5nSlaterl
 
Data_Processing_Program
Data_Processing_ProgramData_Processing_Program
Data_Processing_ProgramNeil Dahlqvist
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxssuser562afc1
 
©Regis University, All Rights Reserved Unauthorized distribu.docx
©Regis University, All Rights Reserved Unauthorized distribu.docx©Regis University, All Rights Reserved Unauthorized distribu.docx
©Regis University, All Rights Reserved Unauthorized distribu.docxgerardkortney
 
The program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docxThe program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docxoscars29
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfrajeshjangid1865
 
Tushar Mahapatra - Portfolio for recent Projects
Tushar Mahapatra - Portfolio for recent ProjectsTushar Mahapatra - Portfolio for recent Projects
Tushar Mahapatra - Portfolio for recent ProjectsTushar Mahapatra
 
Creating a data report in visual basic 6
Creating a data report in visual basic 6Creating a data report in visual basic 6
Creating a data report in visual basic 6mrgulshansharma
 
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docx
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docxAssg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docx
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docxfestockton
 
Open a new project in Visual Studio Community and name it in the form.pdf
Open a new project in Visual Studio Community and name it in the form.pdfOpen a new project in Visual Studio Community and name it in the form.pdf
Open a new project in Visual Studio Community and name it in the form.pdfNathan2rSPeakes
 
1. The correct option is fstreamExplanation The header file fs.pdf
1. The correct option is fstreamExplanation  The header file fs.pdf1. The correct option is fstreamExplanation  The header file fs.pdf
1. The correct option is fstreamExplanation The header file fs.pdfdilipanushkagallery
 

Similar to Building off of the Fraction class you wrote at the beginning of the s.pdf (20)

Nrite the definition of the function insertBack( ) as a member functio.pdf
Nrite the definition of the function insertBack( ) as a member functio.pdfNrite the definition of the function insertBack( ) as a member functio.pdf
Nrite the definition of the function insertBack( ) as a member functio.pdf
 
Python lists
Python listsPython lists
Python lists
 
Data_Processing_Program
Data_Processing_ProgramData_Processing_Program
Data_Processing_Program
 
Python Objects
Python ObjectsPython Objects
Python Objects
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
 
Introduction to Latex
Introduction to LatexIntroduction to Latex
Introduction to Latex
 
©Regis University, All Rights Reserved Unauthorized distribu.docx
©Regis University, All Rights Reserved Unauthorized distribu.docx©Regis University, All Rights Reserved Unauthorized distribu.docx
©Regis University, All Rights Reserved Unauthorized distribu.docx
 
The program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docxThe program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docx
 
Composite Structure Diagram
Composite Structure DiagramComposite Structure Diagram
Composite Structure Diagram
 
Jazz
JazzJazz
Jazz
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdf
 
Tushar Mahapatra - Portfolio for recent Projects
Tushar Mahapatra - Portfolio for recent ProjectsTushar Mahapatra - Portfolio for recent Projects
Tushar Mahapatra - Portfolio for recent Projects
 
Unit 4 qba
Unit 4 qbaUnit 4 qba
Unit 4 qba
 
Functions vs formulas
Functions vs formulasFunctions vs formulas
Functions vs formulas
 
Creating a data report in visual basic 6
Creating a data report in visual basic 6Creating a data report in visual basic 6
Creating a data report in visual basic 6
 
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docx
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docxAssg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docx
Assg 07 Templates and Operator OverloadingCOSC 2336 Sprin.docx
 
Open a new project in Visual Studio Community and name it in the form.pdf
Open a new project in Visual Studio Community and name it in the form.pdfOpen a new project in Visual Studio Community and name it in the form.pdf
Open a new project in Visual Studio Community and name it in the form.pdf
 
synopsis
synopsissynopsis
synopsis
 
User defined functions in matlab
User defined functions in  matlabUser defined functions in  matlab
User defined functions in matlab
 
1. The correct option is fstreamExplanation The header file fs.pdf
1. The correct option is fstreamExplanation  The header file fs.pdf1. The correct option is fstreamExplanation  The header file fs.pdf
1. The correct option is fstreamExplanation The header file fs.pdf
 

More from NIRMALJAI08

Calculate the five-number summary of the given data- Use the approxima.pdf
Calculate the five-number summary of the given data- Use the approxima.pdfCalculate the five-number summary of the given data- Use the approxima.pdf
Calculate the five-number summary of the given data- Use the approxima.pdfNIRMALJAI08
 
Calculate the expected payments for- A- Office visit- new patient- det.pdf
Calculate the expected payments for- A- Office visit- new patient- det.pdfCalculate the expected payments for- A- Office visit- new patient- det.pdf
Calculate the expected payments for- A- Office visit- new patient- det.pdfNIRMALJAI08
 
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdf
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdfCalculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdf
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdfNIRMALJAI08
 
Calculate P(Z0-1)- (Round to the hundredths)-.pdf
Calculate P(Z0-1)- (Round to the hundredths)-.pdfCalculate P(Z0-1)- (Round to the hundredths)-.pdf
Calculate P(Z0-1)- (Round to the hundredths)-.pdfNIRMALJAI08
 
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdf
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdfCalculate P(0-1Z0-1)- (Round to the hundredths)-.pdf
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdfNIRMALJAI08
 
Calclum is essential to tree growth- In 1990- the concentration of cal.pdf
Calclum is essential to tree growth- In 1990- the concentration of cal.pdfCalclum is essential to tree growth- In 1990- the concentration of cal.pdf
Calclum is essential to tree growth- In 1990- the concentration of cal.pdfNIRMALJAI08
 
Calculate an estimated value of a share (P0) of the stock using the Co.pdf
Calculate an estimated value of a share (P0) of the stock using the Co.pdfCalculate an estimated value of a share (P0) of the stock using the Co.pdf
Calculate an estimated value of a share (P0) of the stock using the Co.pdfNIRMALJAI08
 
Caitlin- Chris- and Molly are partners and share income and losses in.pdf
Caitlin- Chris- and Molly are partners and share income and losses in.pdfCaitlin- Chris- and Molly are partners and share income and losses in.pdf
Caitlin- Chris- and Molly are partners and share income and losses in.pdfNIRMALJAI08
 
Caitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdfCaitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdfNIRMALJAI08
 
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdfc- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdfNIRMALJAI08
 
C- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdfC- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdfNIRMALJAI08
 
c- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdfc- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdfNIRMALJAI08
 
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdfC- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdfNIRMALJAI08
 
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdfC- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdfNIRMALJAI08
 
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdfc) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdfNIRMALJAI08
 
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdfc- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdfNIRMALJAI08
 
C- elegans are one of the most common model organisms in biology- C-.pdf
C- elegans are one of the most common model organisms in biology-  C-.pdfC- elegans are one of the most common model organisms in biology-  C-.pdf
C- elegans are one of the most common model organisms in biology- C-.pdfNIRMALJAI08
 
c++ The following questions are about the Memento design pattern- 6-1.pdf
c++ The following questions are about the Memento design pattern- 6-1.pdfc++ The following questions are about the Memento design pattern- 6-1.pdf
c++ The following questions are about the Memento design pattern- 6-1.pdfNIRMALJAI08
 
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdfC and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdfNIRMALJAI08
 

More from NIRMALJAI08 (20)

Calculate the five-number summary of the given data- Use the approxima.pdf
Calculate the five-number summary of the given data- Use the approxima.pdfCalculate the five-number summary of the given data- Use the approxima.pdf
Calculate the five-number summary of the given data- Use the approxima.pdf
 
Calculate the expected payments for- A- Office visit- new patient- det.pdf
Calculate the expected payments for- A- Office visit- new patient- det.pdfCalculate the expected payments for- A- Office visit- new patient- det.pdf
Calculate the expected payments for- A- Office visit- new patient- det.pdf
 
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdf
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdfCalculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdf
Calculate the Beta for Meta- Apple- Amazon- Netflix- and Alphabet for.pdf
 
Calculate P(Z0-1)- (Round to the hundredths)-.pdf
Calculate P(Z0-1)- (Round to the hundredths)-.pdfCalculate P(Z0-1)- (Round to the hundredths)-.pdf
Calculate P(Z0-1)- (Round to the hundredths)-.pdf
 
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdf
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdfCalculate P(0-1Z0-1)- (Round to the hundredths)-.pdf
Calculate P(0-1Z0-1)- (Round to the hundredths)-.pdf
 
Calclum is essential to tree growth- In 1990- the concentration of cal.pdf
Calclum is essential to tree growth- In 1990- the concentration of cal.pdfCalclum is essential to tree growth- In 1990- the concentration of cal.pdf
Calclum is essential to tree growth- In 1990- the concentration of cal.pdf
 
Calculate an estimated value of a share (P0) of the stock using the Co.pdf
Calculate an estimated value of a share (P0) of the stock using the Co.pdfCalculate an estimated value of a share (P0) of the stock using the Co.pdf
Calculate an estimated value of a share (P0) of the stock using the Co.pdf
 
Caitlin- Chris- and Molly are partners and share income and losses in.pdf
Caitlin- Chris- and Molly are partners and share income and losses in.pdfCaitlin- Chris- and Molly are partners and share income and losses in.pdf
Caitlin- Chris- and Molly are partners and share income and losses in.pdf
 
Caitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdfCaitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdf
 
C-CB+2A.pdf
C-CB+2A.pdfC-CB+2A.pdf
C-CB+2A.pdf
 
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdfc- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
 
C- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdfC- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdf
 
c- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdfc- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdf
 
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdfC- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
 
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdfC- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
 
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdfc) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
 
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdfc- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
 
C- elegans are one of the most common model organisms in biology- C-.pdf
C- elegans are one of the most common model organisms in biology-  C-.pdfC- elegans are one of the most common model organisms in biology-  C-.pdf
C- elegans are one of the most common model organisms in biology- C-.pdf
 
c++ The following questions are about the Memento design pattern- 6-1.pdf
c++ The following questions are about the Memento design pattern- 6-1.pdfc++ The following questions are about the Memento design pattern- 6-1.pdf
c++ The following questions are about the Memento design pattern- 6-1.pdf
 
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdfC and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
 

Recently uploaded

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...sanghavirahi2
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 

Recently uploaded (20)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 

Building off of the Fraction class you wrote at the beginning of the s.pdf

  • 1. Building off of the Fraction class you wrote at the beginning of the semester, do the following: 1. Overload the >> operator for reading in from a data file. Make sure the Fraction is reduced after it is read in 2. Read the FractsToVector.txt data file into a Vector of Fractions and return that vector sorted to the main function 3. Read the FractsToList.txt data file into a List of Fractions and return that list sorted to the main function 4. Now pass the sorted Vector and the sorted List into a Merge function. The Merge function will then combine the two into a new Vector of Fractions. Make sure the new Vector does NOT contain any duplicates. Return that new vector of Fractions sorted back to the main function. 5. Print out the first Vector, the List and the merged Vector to the screen The data file is in the format of 2 integers on each line representing the numerator and denominator. See the 2 attached files to see what I mean. Submit your Fraction.cpp and Fraction.h and then your main.cpp files. FractsToVector.txt: 12 3 5 6 4 5 -6 7 22 5 7 6 8 12 6 4 2 2 9 4 7 9 FractsToList.txt: 4 5 6 7 6 4 2 2 9 4 6 7 -8 22 125 75 33 4 -9 5 23 55 6 6 1 3 34 6 5 65 4 114