Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming Assignment PROGRAM NEEDS TO BE DONE IN C++ A furlong is a module of distance equal to 220 yards (1/8 mile). Write two classes

Programming Assignment

PROGRAM NEEDS TO BE DONE IN C++

A furlong is a module of distance equal to 220 yards (1/8 mile). Write two classes that implement distances in the following manner:

The first class keeps track of distances as a whole number of furlongs, a whole number of yards, and a number of feet, which may have a fractional component.

The second class keeps track of distances as a whole number of kilometers, followed by a number of meters, which may have a fractional component.

Implement conversions between the two classes, ensuring that conversion in both directions is possible.

Allow the user to enter in the two types of distances and then display the conversions for each entry:

  • Furlongs, yards and feet
  • Kilometers and meters

Note that the internal view of the data is entirely up to you, but the logical view must match the specifications above. Also note that the emphasis of this assignment is on the use of conversions. Exhaustive implementations of these classes are therefore not required. The ability to declare, output, and convert constitute the essential elements. The program should still consist of at least three modules.

Submit your source code as attachments to the drop box for this module's programming assignment. You can find the drop box at the end of this module's tab page. Do not compress your attachments. Please review the requirements for submitting on the course syllabus.

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions