Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.
For, the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty.
She has M number of queries. Each query represents an integer that is of 4 types.
Find the most general analytic finction f(z)=u+iv where the real part u(x,y)=x^2-y^2-x
Solve the Partiol differential equation (D²-D^1²)z= x² + y²
Download the text file Activity10.txt (linked here) and save it in the same directory where you save the source code for this activity. Write a Python program that reads the Activity10.txt file’s contents and determines the following:
Use the string functions isupper(), islower(), isdigit(), isspace() introduced in Section 8.3.
The following data show the age (week) and height (cm) of soybean
plant.
Age (week) 1 2 3 4 5 6 7
Height (cm) 5 13 16 23 33 38 40
Find the least square regression line of height on age.
Chemcial Equation: C3H8 + O2 ( CO2 + H2O
If 50.0 grams of Cl2 gas is reacted with enough sodium hydroxide (NaOH), calculate the following:
Mass in grams of sodium hypochlorite (NaOCL) produced
Moles of sodium chloride (NaCl) produced
Chemical Equation: NaOH + Cl2 ( NaOCl + NaCl + H2O
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
1. Define a function that will check first if the input fraction is a VALID fraction.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
3. Define a function that will accept two parameters (numerator and denominator to determine the greatest common divisor.
4. Define a function that will accept two parameters (numerator, denominator) and will return the reduced fraction.
Sample Output:
Input a fraction?: 5/0
Invalid fraction
Kaye Keith C. Ruden
Machine Problem 3
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
1. Define a function that will check first if the input fraction is a VALID fraction.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
3. Define a function that will accept two parameters (numerator and denominator to determine the greatest common divisor.
4. Define a function that will accept two parameters (numerator, denominator) and will return the reduced fraction.
Sample Output:
Input a fraction?: 5/0
Invalid fraction
Calculte the number of moles in200g of O gas
Make a program that allows the user to select the operation he or she wishes to perform. Furthermore, your program will keep asking the user to pick until he or she selects exit to stop the execution.