Elle Joy Vasquez 2
Create a Python script that will display the next 5 numbers in the sequence where each number is the sum of the previous two.
TEXT FILE
8 3
4 5
6 2
Output
8 3 11 14 25 39 64
4 5 9 14 23 37 50
6 2 8 10 18 28 46
Elle Joy Vasquez 1
Create a Python script that will display the SUM of all even and the SUM of all odd numbers in a text file.
TEXT FILE
20
4
15
30
5
OUTPUT
SUM OF EVEN: 54
SUM ODD: 20
Between z = – 2.39 and z = – 1.05
On an average 5% of the population in an area suffers from Diabetes. What is the probability that out of 7 persons chosen at random from this area with less than and equals to three suffer from the disease
(1) Write a program that will ask for a price.
(2) If the price is greater than 1000, compute a 10% discount from the original price. Display the computed discount.
(3) If not, just display the original price.
9. The antibiotic thiarubin-A was discovered by studying the feeding habits of wild
chimpanzees in Tanzania. The structure for thiarubin-A is
a. Complete the Lewis structure showing all lone pairs of electrons.
b. Indicate the hybrid orbitals used by the carbon and sulfur atoms in thiarubin-A.
c. How many σ and π bonds are present in this molecule?
7. Urea, a compound formed in the liver, is one of the ways humans excrete nitrogen.
The Lewis structure for urea is
Using hybrid orbitals for carbon, nitrogen, and oxygen, determine which orbitals overlap
to form the various bonds in urea
8.One of the first drugs to be approved for use in treatment of acquired immune deficiency
syndrome (AIDS) was azidothymidine (AZT). Complete the Lewis structure for AZT.
a. How many carbon atoms are sp3 hybridized?
b. How many carbon atoms are sp2 hybridized?
c. Which atom is sp hybridized?
d. How many σ bonds are in the molecule?
e. How many π bonds are in the molecule?
f. What is the N=N=N bond angle in the azide (–N3) group?
g. What is the H–O–C bond angle in the side group attached to the five-membered ring?
h. What is the hybridization of the oxygen atom in the –CH2OH group?
9. The antibiotic thiarubin-A was discovered by studying the feeding habits of wild
chimpanzees in Tanzania. The structure for thiarubin-A is
a. Complete the Lewis structure showing all lone pairs of electrons.
b. Indicate the hybrid orbitals used by the carbon and sulfur atoms in thiarubin-A.
c. How many σ and π bonds are present in this molecule?