A Jar contains 24 red marbles numbered 1 to 24 and 50 blue marbles numbered 1 to 50. A marble is drawn at random from the Jar. Find the probability of the given event. Please enter reduced fractions.
a) The marble is red. P(red)=
b) The marble is odd numbered. P(odd)=
c) The marble is red or odd numbered. P(red or odd)=
d)The marble is blue or even numbered. P(blue or even)=
a) Write a method GetOneStudent that asks a student for both of his/her WRAV101 and
WRSC111 marks (each as a real number). The method must return both of these marks. The
method must ensure that each of the marks is in the range 0 to 100.
b) Write a method CanContinue that takes as input two marks, one for WRAV101 and one for
WRSC111. Each of these marks is in the range 0 to 100. The method must return the value
true if both of these marks are at least 50, otherwise the method must return the value false.
c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one
for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with
the second semester modules (use CanContinue above), an appropriate message and the
average mark for the two modules is displayed, otherwise the student is informed that he may
Tension is maintained in a string of 29.0 N and transverse wave is observed to pass with a speed of 27.0 m/s. (a) What linear mass density this string has? (b) If the tension is reduced half of its initial value, what speed will a transverse wave can be propagated through the string?
A simple pendulum has a period of 3.0seconds. If the value of (g) is taken as 9.9ms-2. Calculate the length of the pendulum
•Determine whether (p ⇔ q) and (¬p ∨ q) ∧ (¬q ∨ p) are logically equivalent.
•Determine whether p ∧ (p ⇔ q) ∧ ¬q is a tautology, contradiction, neither.
The winner is selected depending on the following rules:
Instructions:
Input
1. Option selected by Player 1
2. Option selected by Player 2
Output
If Player 1 wins, print the message "Player 1 wins!"
If Player 2 wins, print the message "Player 2 wins!"
If it's a tie, print the message "It's a tie!"
Player·1:·r
Player·2:·p
Player·2·wins!Write a two class application that has as a data member an array that can store state
area codes. The class should have a member method that enables users to test an
area code to determine if the number is one of the area codes in the state exchange.
The member method should use one of the predefined methods of the Array
class and return true if the argument to the method is one of the state codes.
Override the ToString( ) method to return the full list of area codes with each
surrounded by parentheses. To test the class, store a list of state codes in a onedimensional array. Send that array as an argument to the class. Your application
should work with both an ordered list of area codes or an unordered list
by CodeChum Admin
We're done dealing with days. It's time to step up and now deal with months!
Instructions:
Output
January·=·1
February·=·2
March·=·3
April·=·4
May·=·5
June·=·6
July·=·7
August·=·8
September·=·9
October·=·10
November·=·11
December·=·12In a survey of 300 random households in a particular village, mother's have been asked if they used cellphone to communicate there are 76 who said YES, Use 90%, 95% and 99% confidence to estimate the proportion of all mothers who use the cellphone to communicate
Create three arrays of type double. Do a compile-time initialization and place
different values in two of the arrays. Write a program to store the product of the
two arrays in the third array. Produce a display using the MessageBox class
that shows the contents of all three arrays using a single line for an element from
all three arrays. For an added challenge, design your solution so that the two
original arrays have a different number of elements. Use 1 as the multiplier when
you produce the third array.