Free Computers and Technology Practice Questions - Improve Your Skills

Provide the opportunity for the student to develop a simple process manager, incorporating threading, UDP communications, signals, and process creation (fork() and execup()). Your solution will contain the components shown in the Figure below. fork()/execvp() TCP/UDP Child1 SystemMgr Child2 Prockiller Child 3 SysConfigReader Configuration ipaddr:address proc:program:portnum proc:program:portnum proc:program:portnum Figure 1 Solution Components SystemMgr The system manager will start the Child programs listed in the Configuration file. It will create a simple process table that stores the program name and PID of each process as it is started. When the Child process dies, the System Mgr will restart that program. As Child programs are terminated, System Mgr will print clear output indicating which program terminated (by name and PID). It will print clear output indicating which program (by name and PID) was started. Consider starting with /home/jjwaclaw/CProgs/signals/sigchld.c ChildN - The Child can be a simple program, similar to /home/jjwaclaw/CProgs/signals/testchild.c. The Child will read the Configuration file to determine which UDP port it will listen on for requests to terminate. Upon request, it will simply exit. Hint: an application knows it's program name by simply looking at argv[0]. Each Child program will print clear output indicating its name and PID when it starts up. Each Child program will print clear output indicating its name and PID when it is asked to terminate, before it terminates itself. Prockiller - This program will provide the user with option as to which Child to terminate. When selected, Prockiller will simply send a UDP message to the appropriate Child asking it to terminate. It reads the available programs (and ports) to terminate from the Configuration file. Sys figReader - This program will be responsible for reading the configuration file, similar to what CProgs/common/socketsetup currently does. Note that the tags in the Configuration are shown in BOLD BLUE below. Also note that the proc tags have multiple values, which is a difference from the current socketsetup program. You must define the location of the Configuration file using an environment variable that is used by SysConfigReader, just as the current socketsetup program does. The required directory structure for this solution is as follows. Ensure that the makefiles in each folder support this structure. |-FinalProject | |-ProcKiller - contains the ProcKiller application | |-Child - contains the Child applications | |-common - contains the Configuration File reader application used by Prockiller, SysManager and the Child programs | |-SysManager contains the SysManager application | |-config - contains the Configuration file read by Prockiller, SysManager and the Child programs | |-bin Create an archive (gzipped tar file) of the Final Project directory tree and submit to Blackboard.
Problem 1 Sequence Conservation Logo (Points: 100/100) For this assignment you will program a Sequence Logo calculator/display using the pyseqlogo module and the sequence conservation program we have been building during class. The program should take a multiple sequence alignment file of any size as input. The output of the program should be a file that computes the information content li per site i and also the heights for each of the RNA nucleotides in the sequence at position i. Recall that the heights (e.g. nucleotide A) are computed as: fi(A) Hi(A) = 1 15 (1) Ne{A,C,U,G) fi(N) These values are saved in the file using the same format as shown in class. For this program you can use the program that calculates information and heights discussed in class or you can use your own program. You will then have to modify this program and use pyseqlogo code to display the sequence Logo (you can use the sample in class as a template) computed with the sequence alignment file. The requirements are the following: You need to compute logo letter heights and use them as input in pyseqlogo For all the columns in the alignment create an input list with the correct format to be used in pyseqlogo Display the Logo including axes and select Bits as the Y-axis Save an output file with the Information content and the letter heights for each alignment column The following is an example of a sample screen when using the file msal.txt as input: Input sequences file name: msa1.txt Input output file name: 01.txt The following is an example of a sample screen when using the file msa2.txt as input: Input sequences file name: msa2.txt Input output file name: 02 The following is an example of a sample screen when using the file msa3.txt as input: Input sequences file name: msa3.txt Input output file name: 03 Guidelines Implementing this program requires you to write one function: 1. A function DisplayLogo (I, NT_c, seqLength) that displays the logo in screen. The input parame- ters are the information content I, the nucleotide count matrix NT_c and the sequence length seqLength. For your functions, please use the exact names and parameters as specified above.
You work at a computer repair store. You're building a new computer for a customer. You've installed four 2-GB memory modules for a total of 8 GB of memory (8,192 MB). However, when you boot the computer, the screen is blank, and the computer beeps several times.Identify which memory modules are working as follows:Above the computer, select Motherboard to switch to the motherboard.Remove all memory modules from the computer but one and place the modules on the Shelf.Above the computer, select Front to switch to the front view of the computer.On the computer, select the power button on the front of the computer.If the computer boots and recognizes the memory, the module is good.If the computer does not boot, the module is bad.From the top navigation menu, select Bench to return to the hardware.On the computer, select the power button to turn the computer off.Above the computer, select Motherboard to switch to the motherboard.Drag the memory module to the Shelf.From the Shelf, drag an untested memory module to a slot on the motherboard.Repeat steps 1c-1h to test all remaining modules.Drag the working memory modules from the Shelf to the correct color slots on the motherboards.Boot into the BIOS and verify that all installed modules are recognized by the BIOS as follows:Above the computer, select Front to switch to the front view of the computer.On the computer, select the power button on the front of the computer.When the BIOS loading window appears, press F2 to enter the BIOS.
Part A:We want to create a class that represents a geometric sequence. A geometric sequence is a sequence of numbers that begin at some value and then multiplies each value by some constant to get the next value. For example, the geometric sequence 1, 2, 4, 8, 16 starts at 1 and multiplies each term by 2 to get the next. The geometric sequence 10.8, 5.4, 2.7, 1.35 starts at 10.8 and multiplies each term by 0.5 to get the next. The basic framework of a geometric sequence class is below:public class GeometricSequence {private double currentValue;private double multiplier;}Assume that the parameters to the constructor are initialand mult. What should the body of the constructor be?double currentValue = initial;double multiplier = mult;initial = currentValue;mult = multiplier;double initial = currentValue;double mult = multiplier;currentValue = initial;multiplier = mult;________________________________________________________________________________________________________Part B:We want to create a class that represents a date. A date has a day, month, and year. For example, the date March 16, 2014 has the day 16, month 3, and year 2014. The parameter variables in the constructor for month, day, and year should be m, d and y. The basic framework of a date class is below:public class Date {private int day;private int month;private int year;}What should the body of the constructor be?day = 1;month = 1;year = 1990;int day = d;int month = m;int year = y;d = day;m = month;y = year;day = d;month = m;year = y;