Implement the delivery company using the classes given in

Assignment Help C/C++ Programming
Reference no: EM13347759

Implement the delivery company using the classes given in the class diagram above. Construct a cpp file named DeliveryRun.cpp with main() in it. That main will have two statements:  one will instantiate a DeliveryCompany object and the other will  call the method processPackages() using that object.

304_Implement the delivery company.png

The packages to be delivered are contained in ShippingCompanyInput.txt. Each line in the file shows a package and contains the subsequent information:

-  Priority (O = overnight and S = standard)
-  Name of customer (no spaces in the customer name)
-  Zone to be delivered to (1, 2, or 3)
-  Weight of the package (in pounds)

The charges for each type of package to every zone are included in the Util.h file.  The overnight rate is a function of the three delivery zones (OVERNIGHT_RATE).  The standard rates are provided per pound for each of the delivery zones (STANDARD_RATE_PER_POUND). 

The transport mode for each package is a function of the kind of package (overnight or standard) and the delivery zone (1, 2, or 3).  These are provided in OVERNIGHT_MODE and STANDARD_MODE in util.h.

The output must consist of:

-  A listing of each package
-  A listing of each shipment
-  A summary of the shipments

o  Number of packages
-  By transport mode (plane or truck)
-  By zone (1, 2, or 3)
-  Total

o  Total revenue

Each class with data to be printed out includes its own toString() function.  The output will then be generated from the DeliveryCompany class.

Reference no: EM13347759

Questions Cloud

Create a simple web application that collects gradings : create a simple web application that collects gradings under a number of criteria and then evaluates an aggregate mark.
Question a nbspone of your old english lit professors has : question a nbspone of your old english lit professors has been elected governor of baxter a cute little new england
Question 1 a normal population has a mean of 78 and a : question 1 a normal population has a mean of 78 and a standard deviation of 6. you select a sample of 50. evaluate the
Question 1a ceos usually talk about developing a learning : question 1a. ceos usually talk about developing a learning organization? what is meant by a learning organization?b
Implement the delivery company using the classes given in : implement the delivery company using the classes given in the class diagram above. construct a cpp file named
Write a complete c program to do the following1 the main : write a complete c program to do the following1. the main program will read in a parameter value n read this in main.
Problem 1 integrationcreate a program to integrate an : problem 1. integrationcreate a program to integrate an arbitrary time-domain signal with variable limits of integration
Question 1 alice and bob are sending a message m to each : question 1. alice and bob are sending a message m to each othera give one method to achieve confidentiality for m.b
Problems1the file myinputfiletxt is an encrypted file your : problems1.the file myinputfile.txt is an encrypted file. your assignment is to decrypt this file and hopefully answer

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculate the plane coefficients

Calculate the plane coefficients (A,B,C and D)  of 3 points in a plane defined by P1, P2 and P3, and determine if the point P4 is behind or in front of the polygon surface contained within that plane.

  Chess program, enable a monitoring component

Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based on the opposing player's style and response time.

  You will write a program that reads a text file

You will write a program that reads a text file, counts the number of words in the file, and the number of occurrences of each character. It will print to a file the number of words, and the number of occurrences of each character, as well as the ..

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Program to generate a star-based histogram for a quiz

Write a C++ program to generate a star-based histogram for a quiz (maximum score possible is 5) given to a class of N students, where N is an input from the user. Use arrays for computation.

  Repeat these questions by writing functions

Repeat these questions by writing functions that receive the arrays as constant reference parameters and return the appropriate values through the function name (via return statement). The function header could look like:

  Implement a graphics system that has classes

Implement a graphics System that has classes for various figures: rectangles, squares, triangles and circles. A rectangle has data members height, width, color , and center point. A square has center point and an edge and color

  Implement the bounded stack with a concrete class

Using Eclipse, implement the bounded stack with a concrete class names

  Create a class called vehicle

Create a class called Vehicle that has the manufacturer's name (type String), number of cylinders in the engine (type int), and owner (type Person given below).

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Write code that declares an int array named month

Write code that declares an int array named month with 5 rows and 7 coloumns and initializes every element to -1.

  That takes the time as six integer arguments

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour, minute, and second) and returns the number of seconds since the beginning of the year.

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