Creating a package delivery system

Assignment Help Computer Engineering
Reference no: EM131224486

Object Oriented Programming & Design Methodologies Assignment-

For this assignment, you will be creating a package delivery system. You need to think in terms of objects. The first object is the delivery truck that can store 50 liters of petrol. The cost per liter of petrol is 2.73$. You will be using the sample file, Drivers.txt for this assignment. Your code should however take into account that if an entry is increased or reduced (5 lines per entry) it reads all the entries in the file.

For example, if there is just one entry, it should give the following lines as output:

Elton John

34

218

9

7

Based on this entry, the driver's name is Elton John, his truck has 34 liters already, his total funds are 218$. His truck covers 9 km per liter if empty and 7 km per liter when loaded.

The trucks can carry 12 to 20 packages with random dimensions. The length, width and height of every package can range from 5 to 30 inches. This means that you will need to declare a dynamic array of boxes for each truck and every box will have a different dimension.

Calculate the total cost it will take the loaded truck to travel 60 km, drop the cargo and return empty based on the fuel consumption when the tank was full. This means that the drivers need to fill the tank first before making the journey. Based on the amount of money they have, calculated if everyone can do the journey. This means that you will need to declare a dynamic array of Trucks as well. The sample code given is in structures, convert that to CLASSES. Keep in mind that the attributes/variables MUST be private.

When unloading the boxes show the volume of all the boxes and then deallocate the array of boxes. Once the trucks return, deallocate the array of all trucks after calculating the cost for the trip.

If done properly, one of your previous assignments will get full marks) The packages can only be loaded in descending order of volume, which means that the largest package will go in first. The packages can only be unloaded in ascending order of volume that is, the smallest package first. The output should be given in terms of package number, not volume. Only attempt this if you have extra time and need the bonus marks. (HINT: You need not use one array only for this). Global variables or vectors are not allowed.

Attachment:- Assignment.zip

Reference no: EM131224486

Questions Cloud

Defense technology be able to detect incoming projectiles : National security requires that defense technology be able to detect incoming projectiles or missiles. To make the defense system successful, multiple radar screens are required. What must be the value of p such that the probability of NOT detecting ..
Four p of marketing versus value-based marketing : Compare and contrast the 4 P’s of marketing versus value-based marketing.  Describe both o What are at least three differences of each. Present an argument as to which of the two methods you feel is a better one for marketers to utilize
Find the current i by using the superposition theorem : If R1=5 Ohm, R2 = 10 Ohm, VS= 10V, and IS= 3A in the circuit of given figure, find the current i by using the superposition theorem.
Notre dame-penn state football game : Suppose the demand for the Notre Dame-Penn State football game is given by:
Creating a package delivery system : CS-224: Object Oriented Programming & Design Methodologies Assignment. For this assignment, you will be creating a package delivery system. You need to think in terms of objects. The first object is the delivery truck that can store 50 liters of pe..
Which type of cpu socket does the motherboard have : Does this motherboard have an integrated USB 3.1 10 Gb/s port? 11. What is the maximum number and type of USB ports available on the rear of the motherboard? Write the URL where you found the motherboard information.
When the supply of a good : When the supply of a good decreases and the demand for the good remains unchanged, consumer surplus
What is a fiduciary relationship : Corporate officers and directors owe fiduciary duties to the corporation. What is a fiduciary relationship? Identify at least two of the fiduciary duties and provide an example of each.
Supply of a good decreases and the demand : When the supply of a good decreases and the demand for the good remains unchanged, consumer surplus.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Security policy for mcbride financial services develop a

security policy for mcbride financial services develop a policy based on perceived needs associated within the loan

  Make a class for services offered by a hair-styling salon

make a class for services offered by a hair-styling salon. Data fields include a String to hold the service description (for example, "Cut", Shampoo", or "Manicure"), a double to hold the price, and an integer to hold the average number of minutes..

  Develop a private web application system

Develop a private web application system that scan the confidential and classified files with multiple Anti-virus engines - It is a single web application to scan a file with multiple AV engines simultaneously and report back the analysis result.

  Give some suggestions for resolving those issues

define some of the issues surrounding widespread access to some of the multiple health knowledge sources available on the internet.

  Find an isomorphic between the boolean algebra

Find an isomorphic between the boolean algebra with set b ={ 0,1,p,p' } in formal logic and the boolean algebra wih set p({a,b}).

  Provide an equivalence relation among the objects of a class

An equals method is supposed to provide an equivalence relation among the objects of a class. this means that if a, b, and c are non-null objects of the class then.

  Define the differences among the computer forensic tools

Discuss some of the several backup tools available in the market. What are differences among the computer forensic tools?

  What is capacity of the drive and what is the access time

What is the capacity of the drive? What is the access time? Is this disk faster than the one described in Question 2? Explain.

  Oe of the needs that your client has is a databaseto

one of the needs that your client has is a database.to design a database a database planner should spend a

  Draw a logical right-shift register

Draw a logical right-shift register using two methods JK flip-flop and R flip-flop. Parallel load the input 101011 into your circuit.

  Data representation and logic

Representing Text and Numbers, Binary Arithmetic, Interpreting Logical Statements, Logic Puzzle, Binary and Algorithms.

  We have witnessed sharp increases in quality and quantity

competition has since the 90s led to wider gaps between industry leaders and laggards. there are more winner-take-all

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