Jackpot!
by CodeChum Admin
Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah".
Let's try this out now!
Input
A line containing two integers separated by a space.
777·7
Output
A line containing a string.
Jackpot!
A teacher in a class with N students has noticed that some students have formed their own groups and hence prevented intermingling of students to get those students to mix with each other, the teacher has decided a seating pattern.The seating pattern is very simplistic viz. every boy should sit next to a girl and every girl should next to a boy. They are all seated in one line. It is also mandatory that no two boys sit together, and no two girls sit together. Your task is to make the above happen with minimum number of swaps between as-is situation to desired solution
ATM PIN Code Validation
Write a function with the name validate atm.pin code that takes a word as an argument. ATM PIN is considered valid only if the given word contains Exactly 4 or 6 characters - All the characters should be digits.
Input
The input will be a single line containing a string.
Output
The output should be a single line containing either "Valid PIN Code or "Invalid PIN Code".
Explanation
For example, if the given word is "9837". the output should be "Valid PIN Code", as it contains exactly four characters and all the characters are digits.
Whereas, if the given word is "A289h4", the output should be "invalid PIN Code, though the given word contains exactly six characters, all the characters are not digits.
Write a program that prints all the uppercase characters of the ASCII character table. Display 5 characters per line. Characters are separated by exactly one space.
What is the charged of the comb afterwards
how to solve the above given pattern printing question through recursion by passing two arguments from main function?
how to do a STUDENT INFORMATION using GUI in NETBEANS?
Suppose that the rent for an apartment is $1000 per month this year and increases 3% every year. Write a C++ program that computes the rent in five years and the total rent for one year starting five years from now
Samurais are so awesome! I'd like to imitate their amazing sword skills some time but I just don't have the courage to harm myself, so I'd just like to print out three forward slashes (\) to digitally imitate the samurai's triple slash skill. Haha!
Sounds easy, right? Then code it now!
Output
Three lines with a single forward slash symbol.
years,weeks & days
Given N number of days as input , write a program to convert N number of days to years ( ( Y ) weeks ( W ) and days ( D ).
NOTE :Take 1 year = 365 days.
input
the input contain single line integer N .
output
print space-separated integers Y , W and D.
Explanation
Given N =1329 . th value can be written as 1329 = 3 years +33 weeks + 3 days
so the output should be 3 33 3 .
sample input 1
1329
sample output 1
3
33
3
sample input 1
sample output 1