I need help with C++ homework

Based on the following sensor network topology (see Figure 1) where the numbers denote the

Euclidian distance (meter) between the nodes. Write a program using C++ programming language

that determine the paths to route a packet from node S (source) to node D (Destination) with

minimum energy costs and maximum energy costs.

Your program should display the paths as well as the energy costs. Only display the results for

maximum and minimum energy cost. Required at least two functions in your program: one

function for finding the minimum energy cost and second function for finding the maximum

energy cost. You can use any number of parameters for these functions, no restriction on

that. Do not display all the paths.

Use the following information:

• Cost of a packet transmission from a sensor for a distance of 1m is assumed to be 1 joule.

• Cost of a packet reception at a sensor is assumed to be 5 joules.

The correct output is:

Path S - C - D

Path S - B - D

Minimum cost = 17

Path S - A - C - B - D

Maximum cost = 32

Get Help With a similar task to - I need help with C++ homework

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to I need help with C++ homework
Advance topics in machine learning (Kernels) 2 questions.
Any 2/3 Questions need answering on Advance topics in machine learning (Kernels). relevant notes can be shared upon request....
Using R programming to perform functions and do work.
The expectations are to use R programming to answer the questions attached the file, and the result is also to be a .r file....
write up a report using c programming.
Using the knowledge acquired from this module write a descriptive report to solve the programming problems listed below. The word count limit is 500 words You must include the full code implementation as appendix! I recommend you use Courier New size 1...
Analyse requirements and select appropriate solutions. Design programmes that use appropriate data structures
The assignment requires you to select and implement appropriate data structures, design and implement algorithms and create the relevant software applications that will allow a user to store, update and manipulate the data relating to the operations of an...