Questions
PYTHON Define a function named variousChanges(...) which receives one string (origst) (with letters, digits or special...

PYTHON Define a function named variousChanges(...) which receives one string (origst) (with letters, digits or special characters), possibly empty, and returns a new string containing the following.

a) in those positions where the original string has an even digit, the corresponding character in the new (returned) string should have the string digit '0'
b) in those positions where the original string has a vowel letter (upper or lower case), the new (returned) string should have the letter 'V'. Note that the vowels are : 'a', 'e', 'i', 'o', 'u'
c) any other position in the new (returned) string should have a star ('*')

AND
d) at the end of the new string, there should be a number attached, which is the number of upper case letters in the original string.

For example,
variousChanges("A>e>X34S") should return the string "V*V***0*3" because:

'A' (in position 0) and 'e' (in position 2) are vowels --- so the new string has a 'V' in those positions
'4' (in position 6) is an even digit --- so the new string has a '0' in that position
all other positions have '*' in the new string
'A' , 'X' and 'S' are three upper case letters in the original string --- so the new string has a 3 at the end

In: Computer Science

How cold is it outside? The temperature alone is not enough to provide the answer. Other...

How cold is it outside? The temperature alone is not enough to provide the answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind-chill temperature to measure the coldness using temperature and wind speed. The formula is:

twc = 35.74 + 0.6215ta - 35.75v0.16 + 0.4275tav0.16

t w c = 3.74 + 0.6215 t a − 35.75 v 0.16 + 0.4275 t a v 0.16

where ta is the outside temperature measured in degrees Fahrenheit, v is the speed measured in miles per hour, and twc is the wind-chill temperature. The formula cannot be used for wind speeds below 2mph or temperatures below -58°F or above 41°F.

Write a program that prompts the user to enter a temperature between -58°F and 41°F and a wind speed greater than or equal to 2 then displays the wind-chill temperature. Use Math.pow(a, b) to compute v0.16. Your class must be named Windchill. Here is a sample run:

Enter a temperature between -58°F and 41°F: 5.3
Enter the wind speed (>= 2) in miles per hour: 6
The wind chill index is -5.567068455881625

This is what I made:

import java.util.Scanner;
public class Windchill
{
public static void main(String[]args)
{
//create Scanner
Scanner s=new Scanner(System.in);
double ta= 5.3;
int v= 6;
double v2= Math.pow(v,.16);
double Windchill= 35.74 + 0.6215 * ta-35.75 * v2+0.4275 * ta * v2;
//get temperature in Fahrenheit
System.out.println("Enter a temperature between -58°F and 41°F:" +" "+ ta);
//get wind speed
System.out.println("Enter the wind speed (>= 2) in miles per hour"+" "+ v);
//get windchill index
System.out.println("The windchill index is"+" "+ Windchill);
}
}

My teacher told me: "your program needs to let the user enter the temperature and wind speed at the keyboard."

How do I fix this? please help.

In: Computer Science

Your company offers a denied-benefit pension plan to each of its employees. The plan will make...

Your company offers a denied-benefit pension plan to each of its employees. The plan will make a monthly payment to each retiree of $4 thousand, next month. In each subsequent month, the payment will grow by an annualized rate of 2% to adjust for inflation. There are currently 100 retirees, and you estimate that this number will remain the same, indefinitely. The government mandates that (i) pension liabilities must be discounted at an annualized rate of 4%, and (ii) pension liabilities must be 75% funded (that is, the pension fund must be funded at 75% of the present value of the liabilities). (a) How much money must your rm contribute to its pension fund. (b) Consider the following variation on (a). Yours is a young company { a sexy startup. You don't have any retirees right now, but you do make pension promises to your young workers. You estimate that 20 years from now the first cohort of 50 workers will retire, receiving their first monthly payment one month after retiring (received in 241 months). Going forward, you expect the pool of retirees to remain stable, at 50. How much money must your firm contribute now in order to fulfil the government mandate?

In: Finance

Read the following text and apply at least 3 guidelines for judging whether the observed association...

Read the following text and apply at least 3 guidelines for judging whether the observed association is causal to answer question.

Attention-deficit/hyperactivity disorder (ADHD) is the most common neurodevelopmental disorder and is associated with significant burden. More than half of children with ADHD continue to have this disorder in adulthood and live with many long-term adverse health and social conditions. The worldwide ADHD prevalence in children has been estimated at 7.2%. Genetic factors have been demonstrated to play a role in ADHD etiology with a heritability of 70%-80%. Other factors that play a role include low level of paternal education, low maternal age at delivery, prenatal smoking, prenatal illicit drug use, birth complications, low birth weight, preterm delivery, neonatal jaundice, childhood asthma, maternal depression, use of prenatal antidepressants and acetaminophen exposure. It has been demonstrated that exposure to antibiotics in early life disrupts the equilibrium of gut microbiota and could potentially contribute to the development of ADHD. In a population-based cohort study, researchers found that early antibiotic exposure was associated with the development of ADHD (RR=1.10, 95% Confidence interval 1.01, 1.65).

Is the association between early antibiotic exposure and ADHD causal?

In: Nursing

Background: Despite their antimicrobial potential, vaginal lactobacilli often fail to retain dominance, resulting in overgrowth of...

Background: Despite their antimicrobial potential, vaginal lactobacilli often fail to retain dominance, resulting in overgrowth of the vgna by other bacteria, as observed with bacterial vaginosis. It remains elusive however to what extent interindividual differences in vaginal Lactobacillus community composition determine the stability of this microflora. In a prospective cohort of pregnant women we studied the stability of the normal vaginal microflora (VMF) (assessed on Gram stain) as a function of the presence of the vaginal Lactobacillus index species (determined through culture and molecular analysis with tRFLP).

Results: From 100 consecutive Caucasian women vaginal swabs were obtained at mean gestational ages of 8.6 (SD 1.4), 21.2 (SD 1.3), and 32.4 (SD 1.7) weeks, respectively. Based on Gram stain, 77 women had normal or Lactobacillus-dominated vaginal microflora (VMF) during the first trimester of which 56 remained normail in the third trimester. Th3 remaining 23 women tested abnormal in the first trimester and 13 of them converted in the second or third trimester.

Test the null hypothesis that having an abnormal result in the first trimester is related to having an abnormal result in the third trimester (Hint: What type of chi-square test is this?). (5 pts).

In: Statistics and Probability

Did I answer these correctly? Too many true answers based on my research. Uncertain about 1,...

Did I answer these correctly? Too many true answers based on my research. Uncertain about 1, 2 and 2

1) __T__ An association not explained by bias, chance, confounding means an association is causal.

2) __T__ The connection among intention, decision, behavior, and outcome is not always clear.

3) __T__ Positive predictive value is more influenced by the sensitivity than the specificity of the screening test.

4) __T__ Specificity answers the question: “Of all individuals that were free of disease A, what proportion tested negative?”

5) __T__ Successful treatment programs that shorten the duration of a disease primarily affect the prevalence of the disease rather than the incidence rate.

6) __T_ The preclinical phase of disease lasts from the biological onset to the development of symptoms.

7) __T__ Incidence rate is a true rate because the denominator is defined in terms of person-time whereas cumulative incidence is a proportion.

8) __T__ A clinical trial entails comparing a group of patients treated with a test treatment to a comparable group of patients receiving a control treatment.

9) __F__ Experimental study designs have lower validity than cohort studies.

10) _T__ A “gold standard” is used to determine whether a screening test is effective.

In: Psychology

Demonstrate 1NF Normalization Techniques Procedure Bring the following table structure to first normal form and explain...

Demonstrate 1NF Normalization Techniques

Procedure

Bring the following table structure to first normal form and explain the errors in the current structure. Your submission can be drawn in Word or hand drawn and attached to your submission. Be sure to write out your explanation of the errors in the normal form.

Instructor Name

Instructor Phone

Instructor Email

Course Name

Course Number

Course Description

Student1 Name

Student1 Phone

Student1 Email

Student1 GPA

Student2 Name

Student2 Phone

Student2 Email

Student2 GPA

Student15 Name

Student15 Phone

Student15 Email

Student15 GPA


University

                                                                          

Demonstrate 2NF Normalization Techniques

Procedure

Bring the following table structure to second normal form and explain the errors in the current structure. Your submission can be drawn in Word or hand drawn and attached to your submission. Be sure to write out your explanation of the errors in the normal form.

Course Number

Course Description

Course Credit Hours

Student ID

Student Name

Student Phone

Student Email

Student Grade


Courses

  • Demonstrate 3NF Normalization Techniques

Procedure

Bring the following table structure to third normal form and explain the errors in the current structure. Your submission can be drawn in Word or hand drawn and attached to your submission. Be sure to write out your explanation of the errors in the normal form.

Instructor Name

Instructor Phone

Instructor Email

Course Name

Course Number

Course Description

Student1 Name

Student1 Contact Info

Student1 Major

Student1 GPA

Student2 Name

Student2 Contact Info

Student2 Major

Student2 GPA

Student15 Name

Student15 Contact Info

Student15 Major

Student15 GPA

In: Computer Science

The RAND Health Insurance Experiment found that inpatient and outpatient care were complements. What implications does...

The RAND Health Insurance Experiment found that inpatient and outpatient care were complements. What implications does this have regarding the potential for saving money by increasing coverage for outpatient care?

In: Economics

According to the Oregon Health Insurance Experiment, what occurs to the supply and demand of health...

According to the Oregon Health Insurance Experiment, what occurs to the supply and demand of health care services in the ER setting when everyone who needs Medicaid receives it (moral hazard)?

In: Economics

Starch is a very large molecule made up of many glucose molecules bonded together. Does this...

Starch is a very large molecule made up of many glucose molecules bonded together. Does this help explain the results of this experiment? Explain how.


dialysis tubing with starch and glucose

In: Biology