00 00 MySQL WA200 CEX 6 Java Web Applications Spring 2022 [email protected] CEX USER DEFINED FUNCTION CREATION Professor HG Locklear [email protected] Task 1 2 Create the function router Display that accepts a router id number and prints the following information to the shell about the router in the format shown below. RID Klype Rolfinding Connectivity Static-CONNE Task 2 3 Create the function timeRevise that accepts the name of an antivirus software and prints to the thel the software's name and the number of years from February 10, 2022. un ne date in the format shown below 's revise Antivirus Softuar Revisim in 1,48 years Task 3 Create the function geffiewallCode that accept the ID number of a firewall system and prints to the shet a frewall code based on the following scheme, in the format shown System Nome System Filter Code
Task 3 Create the function getewalCode that accepts the ID number of a firewall system and print to the shell a firewall code based on the following scheme in the format shown System Name System Filter Code Zara Packet 25 Zara Frame 30 Etis Frame 35 Efis Pocket Ecoria Packet Cheirus Frame Task 4 5 Create the function hubPortDifference that accepts the number of two hubs and prints to the shell the difference (absolute value) between their entry and exit port numbers in Task 5 6 ▸ Create the function distanceTaste that accepts the name of a she and the x and y coordinates of another location and prints to the shell the 20 Euclidean distance from the site to the helocation in the format shown below. Specias suction then the function prints Site Of of the status of the se thet TASK (04) from farmaz is 179.21 da Task 6 7 Create the function distonceBetweenWidgets that accepts the 10 number of two widgets and prints to the shel the 20 Euclidean distance between them in the format shown be 86888 40 45 50
Task 3 Create the function geffirewal Code that accepts the ID number of a firewall system and prints to the shell, a firewall code based on the following scheme, in the format shown b System Name System Filter Code Zara Packet 25 Zara Frame 30 Es Frame 35 Efis Packet Econo Packet 45 Cheirus Frame 50 Task 4 5 Create the function hubPortDifference that accepts the ID number of two hubs and prints to the shell the difference (absolute value) between their entry and exit port numbers in below. own M-38 Range Task 5 6 ▸ Create the function distoncelosite that accepts the name of a site and the x and y coordinates of another location and prints to the shell the 2D Euclidean distance from the site to the other location. in the format shown below. Special Instructions: then the function prints Site Offine...nce Uranown to the If the status of the site is shel TASK | TASK S Distance to location (49) from fag is 179.23 40
Task 6 Create the function distanceBetweenWidgets that accepts the ID number of two widgets and prints to the shell the 20 Euclidean distance between them, in the format shown belo da to seated at its compa Task 7 8 Create the function network&Wange that accepts the name of a network and prints the following information to the shell about the network in the format shown below. Nome of Network Expanded Suffix Description, and the Bandwidth Range of the MinBW) Max- Special instructions then the function prints Network is Orice and to the ▸ If the status of the network is shel Expanded Su Description SAT Satelite Network DEF=Defense Network CIV- Civilian Network SURV Surveillance Network TAM TRACK-Tracking Network Satellite netky 100.44 Task 8 9 Create the function switchConfiguration that accepts the ID number of a switch and prints to the shel information about the switch, in the format shown on side 11. Special instructions: then the function prints he w ▸ If the status of the network the switch is assigned to is Currently unavailable to the shell. ▸ A switch has a Primary Port based on its ID number and whether it is stackable If number (digit) is even and Stackable is 0 Primary Port is EntryPort otherwise Primary Port ExtPort ▸ A switch has a security rating based on: If Primary Port is EntryPort switch is 'Secure Switch"... otherwise switch is 'Unsecure Switch ▸ A switch has a power source based on its PoE: If PoE is 1 then power source is AC otherwise it is DC
Task 7 8 ▸ Create the function network WRange that accepts the name of a network and prints the following information to the shell about the network in the format shown below. Name of Network Expanded Suffix Description, and the Bandwidth Range of the MindW Max- ▸ Special instruction If the status of the network is shel then the function prints Network's Of Son to the ME ▸ Expanded Suffix Description SAT Satelite Network DEF Defense Network CIV Civilian Network #Elise Handels SURV Surveillance Network TRACK Tracking Network wly SAT B Task 8 9 Create the function switchConfiguration that accepts the ID number of a switch and prints to the shell information about the switch, in the format shown on slide 11. Special instructions then the function prints The wich is If the status of the network the switch is assigned to is Currently unavailable to the shell. A switch has a Primary Port based on its ID number and whether it is stackable If number (digits) is even and Stackable is 0 Primary Port is EntryPort alerwise Primary Port Exit Port A switch has a security rating based on: If Primary Port is EntryPort switch is "Secure Switch... otherwise switch is "Unsecure Switch! ▸ A switch has a power source based on its PoE: ▸ If PoE is 1 then power source is AC otherwise it is DC Task 8 Format 10 batch 13 cal trials (SEORETT: Ima biti is part of art PORN
00 00 MySQL WA200 CEX 6 Java Web Applications Spring 2022 [email protected] CEX USER DEFINED FUNCTION CREATION
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
00 00 MySQL WA200 CEX 6 Java Web Applications Spring 2022 [email protected] CEX USER DEFINED FUNCTION CREATION
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!