Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Script analysis 1. Analyze the scripts ethers2dhcp.pl and Makefile.txt In a text

ID: 3604034 • Letter: S

Question

Script analysis

1. Analyze the scripts ethers2dhcp.pl and Makefile.txt In a text file script_analysis.txt, write a description of what the files do... ...and how they do it Be sure to pay attention to rickm's comments but do not just paraphrase them.

2. Write a scriptipmac_hash.pl to:

Read in the file dhcpd.conf.

For testing, you can download the file /etc/dhcp/dhcpd.conf from the it20.cs.umb.edu server using the default user account it341.

If needed, consult your IT341 materials for how to do this.

Extract the IP address and the MAC address pairs from the file.

Create a hash named %ipMac that contains these pairs with the IP as the key.

Print out this hash in raw format. This can be printed to standard output.

3. Hash Printing (ipmac_hash_fmt.pl):

Print out the hash in a formatted printed page format. See perldocs for how to do this.

Explanation / Answer

using System; using System.IO; using System.Collections; using System.Linq; class program { public static void Main(string[] args) { var t = typeof(IEnumerable); var typesIEnum = AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()).Where(x => t.IsAssignableFrom(x)); foreach (var types in typesIEnum) { Console.WriteLine(types.FullName); } Console.ReadLine(); } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote