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

  Write an interactive program that prompts for a desired sum

Write an interactive program that prompts for a desired sum, then repeatedly rolls two six-sided dice until their sum is the desired sum. Here is the expected dialogue with the user.

  Submap that accepts two maps from strings

Write a method called subMap that accepts two maps from strings to strings as its parameters and returns true if every key in the first map is also contained in the second map and maps to the same

  Reads a line of characters from the user

Write a segment of code (not an entire program) that reads a line of characters from the user and outputs "too long" if the user enters more than 5 characters (not counting hitting the enter/return key).

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

  Program on basic arithmetic operation

Two integers must be compared before the arithmetic operation and Subtract the two integers provided the first integer is greater than the second integer, otherwise add the two integers and subtract the second integer from the first integer.

  Create a text file named grades.txt

Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt

  It should be clear, based on your comments

Add comments to the code. It should be clear, based on your comments, what each line (or set of lines) does in the program.

  The use of decision logic

The use of decision logic is one of the major concepts of computer programming.

  Individual genes are substrings of a genome

Individual genes are substrings of a genome delineated by 3-element start and stop codons. Genes begin with the start codon ATG and end with one of the following 3 stop codons: TAG, TAA or TGA. Note that start codons can appear anywhere in the string..

  Distinguish syntax and purpose of while-loop and for-loop

Distinguish the syntax and purpose of while-loop and syntax of a for-loop. Give C++ code examples of both loops and descriibe the main differences.

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Randominrange() function that accepts two integer

Write a randomInRange() function that accepts two integer parameters. The parameters will represent the low number and the high number (both inclusive) in the random range. For example, when the function receives 3 and 8.

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