In this exercise your task is to write code that will produce a table of weights in both kilograms (kg) and pounds (lb). You should use the following conversion/( 1 kg = 2.20462 lb /)You are given a list of weights (as strings) in either kilograms or pounds, e.g.,10.0 kg

5.1 kg

52 lb

20 kg

where a space separates the weight value from the units.Your code should output a table of weights containing both kilograms and pounds. To help you we have written a function called print_row to print each row of the table. You should call this function when you wish to output a row in the table as it will format the row in the way we expect.For example, the output for the input given above should be:kg lb

10.0 22.0

5.1 11.2

23.6 52.0

20.0 44.1

# Download Category: Programming

## Vigenere Cipher

In a Vigenere cipher a plaintext message is encrypted by adding letters from a secret key (modulo 26). For example, A + X is X, B + X is Y, C + X is Z, D + X is A, etc.

Decryption is achieved by subtracting the same sequence of letters from the ciphertext. If the message is longer than the key then the letters of the key are simply repeated.

For example, given the key KEY and the message HELLO WORLD we would generate ciphertext as follows:

HELLO WORLD

KEYKE YKEYK

RIJVS UYVJN

## rec_dig_sum python

You will write two functions in this challenge. First write a function called rec_dig_sum that takes in an integer and returns the recursive digit sum of that number.Examples of recursive digit sums:

101 => 1+0+1 = 2

191 => 1+9+1 = 11 => 1+1 = 2

5697 => 5+6+9+7 = 27 => 2+7 = 9Then use that function within another function called distr_of_rec_digit_sums, that returns a dictionary where the keys are recursive digit sums, and the values are the counts of those digit sums occurring between a low and high (inclusive) range of input numbers. Assume low and high are positive integers where high is greater than low, and neither low nor high are negative. Your function should return a dictionary, not just print it.You can test your code as many times as you need. Your code will save if you need to come back later.

Question 2Write a function called sigmoid that implements the sigmoid logistic function, as it is shown in this article.For the value of Euler’s number e use 2.71828.Your function should return a number, not just print that number.

Write a function called sigmoid that implements the sigmoid logistic function, as it is shown in this article.For the value of Euler’s number e use 2.71828.Your function should return a number, not just print that number.

## The user will enter three grades for exam

The user will enter three grades for exam, project, and lab.

* The three grades entered will be stated by the program.

* The program will determine and state the highest and the lowest of grade.

* The program will state the grades above or belore 70%

* The program will calculate and display the total grade average.

## Floating Point Euro

This is a function to check if a string represents a floating point number in European format. This format uses a comma in place of a decimal point. This type of float is formatted integer, comma, integer, where the second integer cannot be negative. Implement this function with a try-except statement. Can not use conditionals.Returns True if s is a float in European format. Returns False otherwise.

In European format, a comma is used in place of a decimal point. So ‘12,5’ stands for 12.5, ‘0,12’ stands for 0.12 and so. Formally, a string is in European format if it is of the form

iseurofloat(‘12,5’) returns True

iseurofloat(‘-12,5′) returns True

iseurofloat(’12’) returns False

iseurofloat(’12,-5′) returns False

iseurofloat(‘,5’) returns False

iseurofloat(‘apple’) returns False

iseurofloat(‘12,5.3’) returns False

iseurofloat(‘12,5,3’) returns False

iseurofloat(‘1e-2’) returns False

## eieio Python

The file eieio.txt contains a list of over 700 English words containing the bigram “ei” or “ie”. We wish to test the spelling rule: “i” before “e” except after “c”. Complete the code below that will count the number of times each of the following occurs:the bigram “ie” appears in a word

the bigram “ei” appears in a word

the trigram “cie” appears in a word

the trigram “cei” appears in a word

Print these numbers out one per line in the order specified above.Your code# TODO: complete the codefh = open(‘eieio.txt’, ‘r’)

## Cricket Python

The given file cricket.csv contains cricket international test series results from 2011 to 2015. The data was obtained from the website HowSTAT!. Fields in the file are delimited by |. From the data compute the number of times Australia has played India in terms of number of matches and print that number.

## Wages Python

The Payroll Department keeps a list of employee information for each pay period in a text file. The format of each line of the file is the following:

Each line should contain:

An employee’s name

The hours worked

The wages paid for that period.

An example of the program input and output is shown below:Enter the file name: data.txtName Hours Total Pay

Lambert 34 357.00

Osborne 22 137.50

Giacometti 5 503.50

## A group of statisticians at a local college has asked

A group of statisticians at a local college has asked you to create a set of functions that compute the median and mode of a set of numbers. Define these functions, median and mode, in a module named stats.py. Also include a function named mean, which computes the average of a set of numbers. Each function should expect a list of numbers as an argument and return a single number. Each function should return 0 if the list is empty. Include a main function that tests the three statistical functions using the following list defined in main:lyst = [3, 1, 7, 1, 4, 10]An example of the program output is shown below:List: [3, 1, 7, 1, 4, 10]

Mode: 1

Median: 3.5

Mean: 4.33333333333333

## PrintProgram

Write a complete Java program in a class named “PrintProgram” whose output is the text that would be the source code of a Java program named Hello that prints “Hello, world!” As its output.