Develop a Python application that will randomly select n integers from 1 to 45 without repetitions.
Sample Output 1:
How many numbers? 6 6 randomly selected nos. [21, 35, 16, 36, 5, 8]
An organization is granted a block of addresses with the beginning address 150.25.0.0/24. The organization needs to have 3 subblocks of addresses to use in its three subnets: one subblock of 11 addresses, one subblock of 40 addresses, and one subblock of 125 addresses. Design the network and plot it completely with respective subnets, IP range, Network IDs
Write a program that takes character array as an input and count the number of capital character in it.
JQuery:
Develop a web page that contains 4 buttons and 3 images:
When button 1 is pressed, image 1 will be hidden and when button 1 is pressed again image 1 is will be shown
Button 2 hides image 2
Button 3 hides images 1 and 2
Button 4 hides all images
Write a program that simulates picking a card from a deck of 52 cards. Your
program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and
suit (Clubs, Diamonds, Hearts, Spades) of the card.
Write a program that prompts the user to enter the number of items and each item’s
name and price, and finally displays the name and price of the item with the lowest
price and the item with the second-lowest price.
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·1
Output
A line containing the total number of positive integers.
3
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.
14632
Output
A line containing a string.
Middle
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