Design a class coord that includes the members

Assignment Help Computer Engineering
Reference no: EM1331738

In ocean navigation, locations are measured in degrees and minutes of latitude and longitude. For example, 149 degrees 34.8 minutes west longitude, and 17 degrees 31.5 minutes south latitude, to be written as 149°34.8' W, 17°31.5' S. There are 60 minutes in a degree. Longitudes are measured from 0 to 180 degrees, east or west from Greenwich, England. Latitude is measured from 0 to 90 degrees, north or south from the equator to the poles.

Write a class Coord that includes the members: degrees (int), minutes (float), and the direction character (N, S, E, or W) to represent both latitude and longitude (altogether 6 members). The class must have a constructor accepting 6 parameters and a toString() method that returns a string representation of the coordinate as a C++ string (not C string).

The main () program must allow the user to enter the coordinates one-by-one, create the Coord object, and apply its toString() method for displaying. You can use hex character constant 'xB0' for printing the degree symbol (°).

Reference no: EM1331738

Questions Cloud

Create a persuasive risk management argument : Business Continuity Planning - Board Responsibilities - Create a Persuasive Risk Management Argument:
List of major constitutional issues : Based on the scenario below, compile a list of major points to be discussed, major sources to use as references, a list of major constitutional issues and any assumptions that can be incorporated into the facts to make an analysis.
Make a c++ class that implements a "safe" array : design a C++ class that implements a "safe" array, where the arrays bounds are checked before accessing its elements. The class constructor must accept an integer parameter and create a dynamic array of that size for storing integers, implemented ..
Explain advantages and possible problems with e-commerce : Explain advantages and possible problems with e-commerce
Design a class coord that includes the members : In ocean navigation, locations are measured in degrees and minutes of latitude and longitude. For in case, 149 degrees 34.8 minutes west longitude, and 17 degrees 31.5 minutes south latitude, to be written as 149°34.8' W, 17°31.5' S.
Does the dallas police force conducts a job analysis : How important are strategic job analyses for strategic human resource management activities
Use qualitative versus quantitative forecasts : As a strategist for a local bank, explain when you would use qualitative versus quantitative forecasts.
Maximizing element of diverse workforce : How can the different perspectives be addressed for each group to maximize this element of a diverse workforce?
Define electronic human resource management : Define electronic human resource management (HRM) and indicate its implications for five HRM practices. This solution is over 300 words long.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define defense in depth

Define defense in depth

  Breach of security

A company has the resource XYZ. If there exist a breach of security, company may face a fine of $100,000 and pay other $20,000 in order to clean up the breach.

  Registering user at directory service

Consider a user A who wishes to download the mp3 file with the title T.Describe how B is able to register anonymously at directory service (letting the service know that it has title T) such that A may use the directory service to receive the file..

  Aspect of software engineering

Select a topic related to some aspect of the Software Engineering. Write about 2500+ word (minimum) paper on that particular topic-single spaced 12 pt times or times new roman font.

  Plan the decision table with all possibilities

Plan the decision table with all possibilities

  Illustrate a 4-d hypercube network

Illustrate a 4-D hypercube network

  Find out the total average response time

Now assume a cache is installed is the institutional LAN. Suppose the hit rate is 0.5. Find the total response time.

  Write a java program on a good doctor

Write a java program on A good Doctor

  Compute the file directory and fat entries

Using a text editor, create a file that is between 5,000 and 6,000 bytes long on a newly formatted floppy disk. compute the file directory and FAT entries for the type of disk used.

  Why it professionals to consider project cost management

Why is it important for the IT professionals to consider project cost management? What might be the result if IT professionals were to overlook this aspect of their projects.

  Recommend a removable storage backup

Managers want to be able to print schedules on any printer at any restaurant if traveling and in a motel with a laptop. Please explain what you would have to do to allow managers to do this and how they will reference the printer.

  Analyzing the database schema

OrderLine (OrderNum, PartNum, NumOrdered, QuotedPrice), Part (PartNum, Description, OnHand, Class, Warehouse, Price), On the basis of code above, list the number and name of all the customers.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd