Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this in C# A 4-none Network System consists of 4 nodes connected together. The connections among these four nodes vary depending on the

Please write this in C#
image text in transcribed
A 4-none Network System consists of 4 nodes connected together. The connections among these four nodes vary depending on the network topology. In the following figure, three different network topologies are shown: In the project, we are particularly interested in the length connecting among two different nodes. For example, to connect node B and node D, the "complete" topology provides the shortest path if all links have the same length. If various lengths are assigned to different links, then estimations among each pair of nodes will be needed before the shortest path can be determined. For the 4-node network system, there are (4 2) = 6 possible pairs of nodes, without considering the directions, as listed below: A-B A-C A-D B-C B-D C-D Design and develop a C# project, utilizing the concept of object-oriented programming, to assess the shortest distance between any selected two nodes (chosen by the users) under each topology, and determine which topology will provide the shortest path. Here are the requirements for the project: Encapsulation, Inheritance, Polymorphism and Composition must be applied Model each link as an object of a class named "Link", with length being a private data member, and "get" and "set" public methods to read and write the length. Specify the 4-node Network System as an abstract class, with pure virtual functions for calculating the length among nodes Each topology is modeled as a derived class of the 4-node Network System, where the links and the corresponding lengths can be assigned In the driver, declare the three different networks, with lengths of your choices. Figure out which one has the shortest path among two nodes, chosen by the user

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago