Question: help for do it part 2 and give me screenshot pls sample test The following information, located on Github m03, are provided as a starter.

help for do it part 2 and give me screenshot pls  help for do it part 2 and give me screenshot pls
sample test The following information, located on Github m03, are provided as
a starter. 1. Frac.h, a complete Frac Class Declaration (the definition is
sample test
to be complete by you.) 2. testFrac_starter.cpp, a working program with partial
Frac members defined to get you started. Please follow the TODO List
below to finish all Class definitions, and to expand the starter to
exercise and verify all the Frac member methods. Project Requirement The form
and format the Fractional number to be used In this project, We
are only going to (1) use two numbers: numerator over denominator to
represent a fraction, no mixed numerals. (2) allow the usage of the
proper and improper fraction: Proper Fraction: the number is inferior to the

The following information, located on Github m03, are provided as a starter. 1. Frac.h, a complete Frac Class Declaration (the definition is to be complete by you.) 2. testFrac_starter.cpp, a working program with partial Frac members defined to get you started. Please follow the TODO List below to finish all Class definitions, and to expand the starter to exercise and verify all the Frac member methods. Project Requirement The form and format the Fractional number to be used In this project, We are only going to (1) use two numbers: numerator over denominator to represent a fraction, no mixed numerals. (2) allow the usage of the proper and improper fraction: Proper Fraction: the number is inferior to the denominator, for instance 3/4: Improper fraction: the numerator is superior to the denominator, for instance 9/2: We are not going to use Mixed Fraction and Equivalent Fractions: Mixed Fraction or Mixed Numeral: it is composed of a whole part and a fractional one, for instance 2 1/3: Equivalent Fractions: fractions that keep on the same proportion of another fraction, for instance: 5/2 =10/4: All Fraction shall be the minimum number representation. . TODO List Part-1 To complete the definition of all Five (5) Required Frac class method groups: All items listed below must be verified in your submission! 1. Constructors: you may combine the first 3 Contructors below into one Default: numerator default as 0, denominator default as 1 One (1) argument Fill Constructor: (int numerator) numerator only, denominator default as 1 Two (2) arguments Fill Constructor: (int numerator, int denominator) String Constructor: (string s); where s in the format of "3/4" 2. Necessary getters and setters 3. Support the following operators: . basic math: +, .../ pre and postfix ++ and -- (4 different types) comparators: , ,!, 4. Type conversion operators, to convert Frac numbers to integer or floating point numbers: I > operator You must create your own test driver for ALL above specified class operation methods code for verification purpose. There are some sample codes written in the github, however, if not in the github provided test driver you must complete the missing ones. Part-2 Sequence of operations in 1 statements vs. 6 statements 5 pts To include the Special ++/-- Test Pattern (inside the testFrac_starter.cpp) as part of your final test program, 1 line #74 onward cout , = !=, -- *>y is: true x y is: true x , , -,- *>y is: true x y is: true Xcy is: false XIy is: true Xy is: false Part-1.4. Type conversion operators First Frac f1: 3/5 Second Frac f2: 9/2 1st fraction as an Integer: 0 2nd fraction as a Double: 4.5 Part-1.5 overload friend iostream insertion > Enter a fraction to test iostream operators: 5/6 You have entered: 5/6 Part-2 Operators in one statement v. separated statements. 11/6 11/6 11/6 11/6 11/6 11/6 11/6 5/6 5/6 11/6 5/6 11/6 Provide your observation and explanation as part of the submission Exit code: (normal program termination) LIC GR Com A PROJECT 1 Fractional Number Class - Frac Total of 30 points The following information, located on Github m03, are provided as a starter. 1. Frach, a complete Frac Class Declaration (the definition is to be complete by you.) 2. testFrac_starter.cpp, a working program with partial Frac members defined to get you started. Please follow the TODO List below to finish all Class definitions, and to expand the starter to exercise and verify all the Frac member methods. 1 sta Ace WI Project Requirement The form and format the Fractional number to be used In this project. We are only going to (1) use two numbers: numerator over denominator to represent a fraction, no mixed numerals. (2) allow the usage of the proper and improper fraction: Proper Fraction: the number is inferior to the denominator, for instance 3/4 ; Improper fraction: the numerator is superior to the denominator, for instance 9/2: We are not going to use Mixed Fraction and Equivalent Fractions: Mixed Fraction or Mixed Numeral: it is composed of a whole part and a fractional one, for instance 2 1/3: Equivalent Fractions: fractions that keep on the same proportion of another fraction, for instance: 5/2 =10/4; All Fraction shall be the minimum number representation. . TODO List Part-1 . To complete the definition of all Five (5) Required Frac class method groups: All items listed below must be verified in your submission! 1. Constructors: * you may combine the first 3 Contructors below into one. Default: numerator default as o, denominator default as 1 One (1) argument Fill Constructor: (int numerator) numerator only, denominator default as 1 Two (2) arguments Fill Constructor (int numerator, int denominator) String Constructor: (string s); where s in the format of "3/4" 2. Necessary getters and setters 3. Support the following operators: basic math: +,-./ pre and postfix ++ and -- (4 different types) comparators: , ,!, 4. Type conversion operators, to convert Frac numbers to integer or floating point numbers: cout > operator You must create your own test driver for ALL above specified class operation methods code for verification purpose. There are some sample codes written in the github, however, if not in the github provided test driver, you must complete the missing ones. Sequence of operations in 1 statements vs. 6 statements 5 pts To include the Special ++) -- Test Pattern (inside the testFrac_starter.cpp) as part of your final test program. // line 874 onward cout , , !-, -- *>y is: true x y is: true Xcy is: false x -y is: true Xy is: false Part-1.4. Type conversion operators First Frac f1: 3/5 Second Frac f2: 9/2 1st fraction as an Integer: 0 2nd fraction as a Double: 4.5 Submit 1. testFrac.cpp (a starter is provided in Github) 2. Frach or you may combine into one single testFrac.cpp 3. Verification (All Frac class members test requirement 1-6 must be tested) 4. Explanation of the different output pattern on running the special ++/-- test provided for this project. Details: Part-1 (25 pts) for Five groups of member functions: Constructors (inc, string constructor) Getter/setters Math Type cast Friend > Part-2 (5 pts) for the explanation for the behavior observed by running the provided test pattern: six (6) operations in one statement vs. six (6) operations in six (6) statements

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!