Write a function called calculate_tax that takes 3 arguments: your age, salary, and current job
designation.
Your first task is to take these arguments as user input and pass these values to the function.
Your second task is to implement the function and calculate the tax as the following conditions:
NO TAX IF YOU ARE LESS THAN 18 YEARS OLD.
NO TAX IF YOU ARE THE PRESIDENT OF THE COMPANY
No tax if you get paid less than 10,000
5% tax if you get paid between 10K and 20K
10% tax if you get paid more than 20K
Write a python function that takes a string as an argument. Your task is to calculate the number
of uppercase letters and lowercase letters and print them in the function.
===================================================================
Function Call:
function_name('The quick Sand Man')
Output:
No. of Uppercase characters : 3
No. of Lowercase Characters: 12
===================================================================
Function Call:
function_name('HaRRy PotteR')
Output:
No. of Uppercase characters : 5
No. of Lowercase Characters: 6
Write a function called foo_moo that takes a number as an argument and returns the following
statements according to the below mentioned conditions. Then, finally prints the statement in
the function call.
If the number is divisible by 2, it should return "Foo".
If the number is divisible by 3, it should return "Moo".
If the number is divisible by both 2 and 3, it should return "FooMoo".
Otherwise, it returns "Boo".
Write a python function that takes the limit as an argument of the Fibonacci series and prints till
that limit.
===================================================================
Function Call:
fibonacci(10)
Output:
0 1 1 2 3 5 8
===================================================================
Function Call:
fibonacci(5)
Output:
0 1 1 2 3 5
Write a function called even_checker that takes a number as an argument and prints whether
the number is even or odd inside the function.
===================================================================
Example 1:
Function Call:
even_checker(5)
Output:
Odd!!
===================================================================
Example2:
Function Call:
even_checker(2)
Output:
Even!!
Determine if the entropy change will be positive or negative for the following reactions:
H2 + N2 → NH3
a proton moving horizontally at 3.5x10^4 m/s enters a uniform magnetic field of 0.075 t directed upward at 30°with the horizontal. find the magnitude of the magnetic force acting on the proton
7. Using the formula at the beginning of this lesson, calculate the wavelength of a signal from KPhET 98.7. Remember that FM stations transmit in the Megahertz range. This means that KPhET is transmitting a frequency of 9.87 x107 hz. What is the wavelength of the signal from this radio station?
8. My favorite radio station is NPR, which transmits a signal that is has a wavelength of 3.38 m. What is the frequency of this signal? Remember, light speed is 3 x108 m/s.
9. AM 630 is where I listen to sports. The frequency is 630 khz (or 630,000 hz). What is the wavelength?
10. Pick your favorite radio station, or one your friends listen to. What is its frequency and wavelength?
Directions: Read, analyze, and solve the problems below. Show your complete solutions.
a. What is the probability that the 36 tires will have an average of less than 16,000 miles until the tires begin to wear out?
b. What is the probability that the 36 tires will have an average of more than 18,000 miles until the tires begin to wear out?
3 The number of driving miles before a certain kind of tire begins to show wear is on the average, 16, 800 miles with a standard deviation of 3, 300 miles.
2 The average number of pages in a novel is 326 with a standard deviation of 24 pages. If a sample of 50 novels is randomly chosen, what is the probability that the average number of pages in these books is between 319 and 331?
1 There are 250 dogs at a dog show that weigh an average of 12 pounds, with a standard deviation of 8 pounds. If 4 dogs are chosen at random, what is the probability that the average weight is greater than 8 pounds?
Manila, the most populous city, has approximately 4.12x10^7 people
living in it. The population of the entire National Capital Region (NCR) is
approximately 3.1X10^8 people. About how many times greater is the
population of NCR than the population of Manila?