Using unix extract the various ethnic populations in file

Assignment Help Programming Languages
Reference no: EM13163470

Using Unix extract the various ethnic populations in your file.

2.      Your PERL program should produce two sets of data that can be used to produce figure1 and table 1 and table 2 for your final paper.

 

a.       Table 1: Number of participants that subscribe to each ethnic group

b.      Table 2: Number of each genotyped result by ethnic group.

Example : Table 2

Genotype

African-American

Asian

Caucasian

*1/*1

1094

276

7174

*1/*10

0

0

2

c.       Figure 1: Using the data in Table 2 create a figure that can easily highlight the differences in genotype distributions across ethnic populations. Figure should be publication ready with titles, axis labels, legend, and description. Can be created using any statistics program or Excel.

Perl program requirements:

  • Code should follow good programming practices
  • The program should accept the path of the input file and the path of the output file from the command line.
  • Keep in mind that *1/*2 is the same as *2/*1 Your code should consider these the same and eliminate any duplicate reporting.
  • If a particular genotype is not included in an ethnic group, your code must put a zero value.
  • You will need to include at least 2 subroutines in your program and pass any arrays or hashes as references to and from subroutines.
  • You will need to use a hash as the data structure to determine the ethnic distribution.

Reference no: EM13163470

Questions Cloud

What is the average thickness of the sheet in meters : if a 1.00 g piece of gold (density = 19.32 g/cm^3) is hammered into a sheet 8.0 x 5.0 ft what is the average thickness of the sheet in meters?
Several valid and invalis invoice objects : Create a program that attempts to create several valid and invalis invoice objects. Immediately after each instantiation attempt handle any thrown exceptions by displaying an error message.
Display the array, the average and the number of days above : Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.
Simple java application that uses the string : Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.
Using unix extract the various ethnic populations in file : Using Unix extract the various ethnic populations in your file.
Using array subscript notation : Using array subscript notation, base/offset notation with the array name as the pointer, array notation with  vPtr , and pointer/offset notation with  vPtr , add 3 to the value in the 3 rd element and display that number. (Do not modify the value in ..
Implement a function to recursively : Implement a function to recursively determine if a word is a palindrome. A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.
. assume the node is in the usual info-link form with info : Show what is produced by the following C++ code. Assume the node is in the usual info-link form with the info of the type int. (list, trail, and current are pointers of type nodeType.)
Prepare the journal entry to record depreciation expense : Irons Delivery, Inc., purchased a new delivery truck for $42,000 on January 1, 2009. The truck is expected to have a $2,000 residual value at the end of its five-year useful life. Irons uses the straight-line method of depreciation.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program to allow user to enter marks of students

Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program.

  Write modular program to enter integers for sorting

Write a modular program that performs the following functions: Allows the user to enter 10 integers for sorting, Allows the user to select one of the two types of sorting techniques.

  Creating application to test class rectangle

Write down application to test class Rectangle.

  Write program to compute total payment

Write a program that computes the total payment, tip, and tax for the "ABC" restaurant. This program must have three functions as below: Menu (Show the menu for each customer). Menu include 6 options.

  Write assignment statement with one arithmetic operator

Write a simple assignment statement with one arithmetic operator in some language you know. For each component of the statement.

  Development of computer systems track citizens

To help counter terrorism, many countries are planning and development of computer systems that track large number of citizens and their actions.

  Create class using static variable to store annual interest

Create class SavingAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount.

  Program to ask how many games are being purchased

Your program should ask the store clerk how many games are being purchased and calculate a total due (with 6% tax). The total number of games, the discount amount.

  Design application to allow user to input a price

Design an application that allows a user to input a price until an appropriate sentinel value is entered.Output is the price of each item on each day,one through seven.

  Write program to compute summation of four grades

when user press, the program computes summation of four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box (picSum).

  Explaining exception handling using program

Use exception handling appropriately. Use comments to illustrate the various concepts applied / utilized in the solution.

  Design the swing applet and html test file

You can download sound clips and graphics images from Internet to use in the program. Design the Swing applet named JPartyPlanner and HTML test file to run Swing applet.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd