write a python program
In a supermarket, when paying your bill amount, if your amount exceeds RO.100, You have an option of Cash or Credit Card. If you pay as cash you will get 6% of discount from your original amount, but for Credit Card there is no discount. When your amount is less than RO.100 you will have to pay by cash only with the discount of 3%.
A 400 mH coil is connected to an AC source, an RMS current of 6 mA is flowing. Find out the voltage across the coil if the frequency is 1000 Hz.
In electrical circuit subject, where do you think you will be able to apply the knowledge that you will through this course in your career as a Computer Engineering?
write a python program
In a supermarket, when paying your bill amount, if your amount exceeds RO.100, You have an option of Cash or Credit Card. If you pay as cash you will get 6% of discount from your original amount, but for Credit Card there is no discount. When your amount is less than RO.100 you will have to pay by cash only with the discount of 3%.
Question2
a).A balanced coin is tossed three times. Calculate the probability that exactly two of the three tosses result in heads.
b). A coin is tossed and a single 6-sided die is rolled. Find the probability of getting a head on the coin anda 4 on the die?
c). Prove that the following events are independent or dependents
i) Tossing a pair of fair dice and two events A & B are defined as Sum equal to 3 and 6 respectively
ii) Toss a pair of fair dice with defining two events A and B as both red and green die show 2
iii) Toss a fair coin twice with defining two events A and Bas A: head on second toss
and B: head on first toss
d). Ten cards numbered 1 to 10 are placed in a box, mixed up thoroughly and then
one card is drawn randomly. If it is known that the number on the drawn card is
more than 3, what is the probability that it is an even number?
Question1
b) The English alphabet contains 21 consonants and 5 vowels. How many strings of
six lower case letters of the English alphabet contain:i) Exactly one vowel?
i) Exactly 2 vowels
III) At least 1 vowel
IV) At least 2 vowels)
c).If A and B are independent events, show that A and B are also independent. Are A And B independent?
d) Find Population Mean, median, mode and Sample Standard Deviation for the following
data set: 5, 10, 15, 20, 25, 30
Q2
if two events, A and B, are such that P(A) = .5, P(B) = .3, and P(A intersection B) = .1, findthe following:
a).P(A|B)
b). P(B|A)
c).P(A|AUB)
d).P(A|A intersection B)
e). P(A intersection B|A U B)
Consider the following events n the toss of a single die: A: Observe an odd numbers,B: Observe an even numbers, C: Observe a I or 2.
a). Are A and B independent events?
b). Are A and C independent events?
Q3
Cards are dealt, one at a time, from a standard 52-card deck.
a). if the first 2 cards are both spades, what is the probability that the next 3 cards are alsospades?
b). If the first 3 cards are all spades, wlhat is the probability that the next 2 carcds are alsospades?
C).It the tirst 4 cards are all spades, what 1s the probability that the next card is also aspade?
Q4
Can A andB be mutually exchusive if P(A) 4 and P(B)=.7? If P(A) = .4 and P(B) .3=Why?