Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 (7pts): Static Latency-Computer Program Summer internships are fast approaching, and companies/firms have already begun recruiting capable candidates to fill up some Summer (Student)
Question 1 (7pts): Static Latency-Computer Program Summer internships are fast approaching, and companies/firms have already begun recruiting capable candidates to fill up some Summer (Student) Intern positions. Project-S is a SpaceExploration program handled and managed by a globally reputable company in the Science and Technology sector of our global economy. Thus, Project-S is comprised of a mix of Astronomers, Scientists, Engineers, Research Assistants, and Summer Interns. Additionally, it is important to note that Project-S is essentially a program being designed and developed over a Metropolitan Area Network (MAN) comprising remote servers and computing nodes interconnected via the following media, viz: fibre optics, microwave, coaxial and twisted-pair cables. To this end, you have been recruited to be part of Project-S in the capacity of a Summer Intern, and you shall be reporting directly to your superiors comprising the Unit Head, Departmental Head, and Chief Networking Officer (CNO). Primarily, your job description involves monitoring point-to-point connections between computing nodes, so as to ensure that every communicationetwork link is alive with reference to its defined bandwidth on a given communication medium. Therefore, design an algorithm; and thereafter, develop a program (using Java) based on your predesigned algorithm such that your algorithm and source code will accomplish the following: 1. Title/Name of your algorithm = Algorithm 1: Static Latency Computer 2. Name of your Java program/class = A1_Q1 3. Display a welcome/salutation message to the user of the program. 4. Display a prompt message for the user to enter the bandwidth of a given communication channel/link, in {n}{x} bps format where n is a number and x is a prefix quantifier, as a single group of user input. 5. Validate the user's input in (4.) above in a bid to ensure that ONLY valid bandwidth data is entered based on the aforementioned format. In the event where the user enters an invalid input for the bandwidth data, display the appropriate error message and terminate the program with a message to the user to retry later. 6. Display prompt messages, one after the other, for the user to enter the source IP address and the destination IP address, respectively, with regard to any two (2) given nodes interconnected within the Project-S MAN. 7. Validate the user's input in (6.) above to ensure that ONLY a valid IP address, based on the Internet Protocol version 4 (IPv4) addressing standard/scheme, is entered by the user. In this regard, a valid IPv4 address possesses the following syntax based on decimal (base10) number system: {0to255}.{0 to 255}.{0to255}.{0 to 255}. Hence, if the user enters an invalid IPv4 address for either source address or destination address in (6.) above; display the respective error message and terminate the program with a message to the user to retry later. 8. Upon successful validation in (7.) above, prompt the user to enter the amount of data, in {n}{y}B format where n is a number and y is a prefix quantifier, as a single group of user input. Thus, this data is assumed to be transmitted from the source IP address to the destination IP address using the communication channel defined in (4.) above. 9. Validate the user's input in (8.) above, so as to ensure that ONLY a valid data amount is entered based on the aforementioned format. If the user enters an invalid quantity of data, display an appropriate error message and terminate the program with a note to the user to try again. 10. Preprocess all the user's inputs above, and compute the latency in milliseconds (ms) that is incurred from transmitting the predefined quantity of data from the source IP address to the destination IP address over the defined network (communication) channel. 11. Finally, display a complimentary-close message as follows: Thank you for your contribution to Project-S. The following are sample screenshots to illustrate the expected behavior of your program. Your program must display the same information, using the same format, depicted in the screenshots: Welcome to the Static Latency-Computer Program: Figure 1. Sample-1 output of Question 1 Welcome to the Static Latency-Computer Program: Figure 2. Sample-2 output of Question 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started