Question: Please use basic Java Language Please use basic java language. Summer internships are fast approaching, and companies/firms have already begun recruiting capable candidates to fill

Please use basic Java Language
Please use basic Java Language Please use basic java language. 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
Please use basic java language.

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 you 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 =A2_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}b bs 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: {0 to 255}. {0 to 255}. {0 to 255}. {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 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 contifibution to Rroject-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: Please enter the bandwidth, in {n{x}bps format, for the network link: 1erapt Please enter the source IP address: 10100222254 entered based on the arorementioned 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: Please enter the bandwidth, in {n}(x}b bs format, for the network link: 1eTbps Please enter the source IP address: 10109222.254 Please enter the destination IP address: 2542001005 Please enter data amount, in {n}{y}B format, for transmission over the network 1ink: 1ecB Latency (10.100.222.254254.200.10e.5)=7.8125ms Thank you for your contribution to Project-s. Figure 1. Sample-1 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}bps format, for the network link: leecbps Please enter the source IP address: 1 - 5 is 111 1 Please enter the destination IP address: 2 2/519 Please enter data asount, in {n}{y}8 format, for transmission over the network 1ink: 1eE Latency (2.5.10.1112.255.1.9)=8.589934592E11ms Thank you for your contribution to Project- 5 . Figure 2. Sample-2 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}bps format, for the network 1ink: SekBps Invalid input for bandwidth; please re-run and enter the bandwidth in (n}{x}bps format. Thank you for your contribution to Project-5. Figure 3. Sample-3 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}b bs format, for the network Iink: 100g bos Invalid input for bandwidth; please re-run and enter the bandwidth in {n}{x}bps format. Thank you for your contribution to Project-5. Figure 4. Sample-4 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}bps format, for the network 1ink: 1aybps Please enter the source IP address : 256 ig 114 cee Error: Your entry for source IP address is incorrect. Kindly retry with valid inputs. Thank you for your contribution to Project-5. Figure 5. Somple-5 output of Question 1 Welcome to the static Latency-Computer Program: Please enter the bandwidth, in (n){x}bp format, for the network 1ink Iejbipil Figure 4. Sample-4 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}bps format, for the network 1ink: 10Ybps Please enter the source IP address: 256 10 124200 Error: Your entry for source IP address is incorrect. Kindly retry with valid inputs, Thank you for your contribution to Project-S. Figure 5. Sample-5 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n(x)bps format, for the network 1ink: 1erbps Please enter the source IP address: 255114121,30 Please enter the destination IP address: 12 155 25610 , Error: Your entry for destination IP address is incorrect, Kindly retry with valid inputs. Thank you for your contribution to Project-5. Figure 6. Sample-6 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{(x)bps format, for the network link: 1eybps Please enter the soucce IP address: 4.10,155142 Error: Your entry for source IP address is incorrect. Kindly retry with valid inputs. Thank you for your contribution to Project-5. Figure 7. Sample-7 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}b bs format, for the network link: 15Zbps Please enter the source IP address: 152 178255100 Please enter the destination IP address: 1025542131 Please enter data amount, in {n}{y}B format, for transmission over the network 11 ink: 10egb Invalid input for the amount of data; please retry with the data amount in {n}{y}B format. Thank you for your contribution to Project-s. Figure 8. Sample-8 output of Question 1 Welcome to the Static Latency-Computer Program: Please enter the bandwidth, in {n}{x}bp s format, for the network 11nk: 1eeeexbp: Please enter the source IP address: 1001411242111 Please enter the destination IP address: 111253146126 . Please enter data amount, in {n(y}B format, for transmission over the network 1ink: 1e0cb Invalid input for the amount of data; please retry with the data amount in (n){y}B format. Thank you for your contribution to Project-S. Figure 9. Sample-9 output of Question 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!