How does conscience relate to morality?
Do laws limit our freedom?
Why is morality only for person?
To be moral is to be human. What does it mean?
by CodeChum Admin
There are different kinds of numbers, but among them all, the most commonly used numbers in our daily lives are those positive ones. So, I only want you to count all the positive numbers from the 4 inputted values and print out the result.
Go and search for the positive ones among these four!
Input
A line containing four numbers (may contain decimal places) separated by a space.
2·-4·3.6·1Output
A line containing the total number of positive integers.
3X is a normally distributed random variable with a mean of 60 and standard
deviation of 8. Find the probabilities indicated by using the table.
(a) P(X < 52)
(b) P(48 < X < 64)
(c) P(X > 57)
by CodeChum Admin
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate where among the 5-digit integer is the largest one. There are only 4 possible cases for this mission:
Now, show me how far you've understood your lessons!
Input
A line containing a five-digit integer.
14632Output
A line containing a string.
MiddleX is a normally distributed random variable with a mean of 60 and standard
deviation of 8. Find the probabilities indicated by using the table.
(a) P(X < 52)
(b) P(48 < X < 64)
(c) P(X > 57)
Is It You, Cody?
by CodeChum Admin
Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong".
It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.
Now, will you take on this task?
Input
A line containing four one-letter strings separated by a space.
c·O·D·y
Output
A line containing a string.
Correct
Hand shakes
Input=5
Output=10