Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer in C + + Upon completing this activity, you will be able to integrate Class Composition, design Descriptive Tables, Unified Modeling Language (

Please answer in C++ Upon completing this activity, you will be able to integrate Class Composition, design Descriptive Tables, Unified Modeling Language
(UML) Diagrams, and Class's Responsibilities and Collaborations (CRC) to problem-solve. (Objectives 1-7).
Student Instructions:
Please submit a report on the Assignment submission page with the solution to the next verbal problem:
Analyze the following problem:
(Retrieve of Gaddis, T.,2018, p.225) Programming Challenges, 17.Personal Best, Chapter 4.
Personal Best
Write a program that asks for the name of a pole vaulter and the dates and vault heights (in meters) of the
athlete's three best vaults. It should then report, in order of height (best first), the date on which each vault
was made and its height.
Input Validation: Only accept values between 2.0 and 5.0 for the heights.
Design a class MeterCentimeter that holds two attributes:
a. Declare one attribute named meter of integer datatype.
b. Declare one attribute named centimeter of integer datatype.
The class should define the relational operators.
Design a class Vault that holds two attributes:
c. Declare one attribute named height of MeterCentimeter class data type.
d. Declare one attribute named date of Date class data type.
Implement your code's Constructors, Destructor, Copy Constructor, Mutators, and Accessor functions.
Overload operators in your classes.
Define in the driver program three objects of Valult datatype, and sorted them.
The solution must contain the following:
a. Source code.
b. Separate class specifications from implementation.
c. Program output.
d. Descriptive Tables.
e. UML diagrams.
f. CRC cards.
image text in transcribed

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

Step: 3

blur-text-image

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

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions