Reference no: EM131396044
You have been developing a Fraction class for Teacher's Pet Software. Each Fraction contains a numerator, denominator, a whole number portion, and has access to several functions you have developed, including overloaded operators. Complete these tasks:
a. Create a FractionException class. The class contains a Fraction object and a string message explaining the reason for the exception. Include a constructor that requires values for the Fraction and the message. Also include a function that displays the message.
b. Modify each Fraction class constructor and data entry function so that it throws a FractionException whenever a client attempts to instantiate a Fraction with a zero denominator.
c. Write a main()function that asks the user to enter values for four Fractions. If the user attempts to create a Fraction with a zero denominator, catch the exception, display a message, and force the Fraction to 0 / 1. Display the four Fraction objects. Save the file as FractionException1.cpp.
d. Write a main()function that asks the user to enter values for four Fractions. If the user attempts to create a Fraction with a zero denominator, catch the exception, display a message, and force the user to reenter the Fraction values. Display the four Fraction objects. Save the file as FractionException2.cpp.
e. Write a main()function that asks the user to enter values for four Fractions. If the user attempts to create a Fraction with a zero denominator, catch the exception, display a message, and terminate the program. Save the file as FractionException3.cpp.
Proper application of each step of each analysis
: Calculus analysis and the Kantian analysis,step by step, and tell me the answer to which each analysis leads. You will be graded on the proper application of each step of each analysis, including the reasoning behind each.
|
Cereal market after the storm
: In the market for breakfast cereal, the market is currently in equilibrium. Suddenly there is a storm that destroys the wheat that farmers had been growing for the cereal manufacturer. What will happen to the cereal market after the storm?
|
Examine the major effects that government policies
: Examine the major effects that government policies have on production and employment. Predict the potential effects that government policies could have on your company.
|
Write an explanation of why experiment must be redesigned
: As the statistician in the group, you decide that a Mann-Whitney U test is appropriate.- Write an explanation of why the experiment must be redesigned.
|
Create a fractionexception class
: Create a FractionException class. The class contains a Fraction object and a string message explaining the reason for the exception. Include a constructor that requires values for the Fraction and the message. Also include a function that displays..
|
Perform a mann whitney u test and write a conclusion
: Suppose your friend in given problem arranged for three more cars, labeled the 9 cars A-I, changed a to .05, and conducted the "quiet" test. The results are shown in the accompanying table. Perform a Mann-Whitney U test and write a conclusion.
|
Write a report on network design and management trends
: You will research and report on network design and management trends over the last three years (present year minus 2) in the areas of virtualization and security.
|
My grandmothers dumpling
: Which kind of process is this essay? In other words, what is the author's purpose: Could a reader recreate the dumplings based on reading this? Or is the writer describing the process?
|
Create a bankaccountexception class
: Modify each BankAccount class constructor and data entry function so that it throws an exception whenever a client attempts to instantiate a BankAccount with an account number that is less than 1000 or greater than 9999.
|