Write a C# program to detect key presses. If the user pressed number keys( from 0 to 9), the
program will display the number that is pressed, otherwise the program will show "Not allowed".
Prove that the following statements are true by means of mathematical induction n X
(a) ∀n ≥ 1, i=1 i(i!) = (n + 1)! − 1.
(b) 7n −2n is divisible by 5, ∀n ≥ 0.
(c) n! > n2, ∀n ≥ 4.
composite numbers in the range
you are given two integers m and n .write a program to print all the composite numbers between m and n, (including m and n)
1)inputs are 2 and 9
in the given example the composite numbers present in range of 2 and 9 are 4,6,8,9
the output is
4
6
8
9
2)inputs are 1 and 4
the output is
4
In a wedding that you are attending, there are some chairs that have digits inscribed at their
backs. The chairs are lined in a row such that they form a string of the digits. Find the
minimum number of sets M that can be formed from these digits such that:
1. The number of digits in each set is one gf more than one.
2. Each set is formed using consecutive digits and no digit can be used more than once.
3. In each set, the number formed using the digits is less than or equal to Y. using three inputs
given an integer N the task to find the minimum absoulte difference between N and a closest N number power of 2
Assume that two matrices A, B are invertible. With the help of Mathematica show with one counterexample that (A B)-1 is not equal to A-1 B-1
by CodeChum Admin
Hey I’ve got this cool idea for an app! It’s kind of simple but just hear me out. All the user has to do is enter a bunch of integers. Then the application prints the largest sum of a strictly ascending sequence of the array. A strictly ascending sequence is a sequence where the current number is always lesser than the next number.
For example, the user enters 2 4 5 1 7 3, the output should be 11 (2 + 4 + 5).
Then that’s it! I think this is going to be a hit! Don’t you think? Well I do. If you help me then we’re going to be rich!
Note: For this problem, a sequence must contain at least 2 numbers. If there is no sequence found, then the largest sum is 0.
Input
1. The size of the array
Constraints
The value is within the range: 0 <= size <= 2147483647
2. Elements of the array
Constraints
Each element <= 2147483647 and >= 0
Output
by CodeChum Admin
I got my grandmother a new phone because I thought that we could talk more everyday by texting. Well, let’s just say that my grandma’s eyes aren’t the best anymore so she can’t really see what I text her and because of that she wants to ditch texting and stick with carrier pigeons. You know how embarrassing it is for a kid like me to be seen using carrier pigeons?!?! Well, anyway, I was hoping that you could make a program that takes my text and make it bigger, a LOT bigger. How about you test it out by only using the letters A, B, and C first.
Input
1. My text
Description
This is a string with characters A, B, and C.
Constraints
It is guaranteed that all letters are in uppercase.
Output
The first line will contain a message prompt to input my text.
The succeeding lines will contain the enlarged text.
Write a function usung c++ statements called print report () which takes two integer arrays
WRITE TRUE IF THE STATEMENT IS CORRECT AND FALSE IF THE STATEMENT IS WRONG: 1.FOR IMAGE COMPOSITION TO BE EFFECTIVE,IT MUST HAVE ITS ELEMENTS IN EQUAL WEIGHT ACROSS THE FRAME. 2.YOU CAN USE ANY COLOR COMBINATION WHEN COMPOSING YOUR DESIGN. 3.ANY SOURCE CAN BE INCLUDED IN YOUR INFOGRAPHIC. 4.JPEG IS CONSIDERED TO PRODUCE A HIGH QUALITY IMAGE AND DOES NOT REMOVE ANY INFORMATION FROM YHE IMAGE. 5.IT IS BEST TO USE GIF FORMAT FOR CARTOONISH IMAGES. 6.ASYMMETRICAL IS A TYPE OF VISUAL BALANCE IN WHICH TWO SIDES OF A COMPOSITION ARE DEFFERENT YET BALANCED. 7.GIF IS THE BEST TO USE WHEN WORKING WITH FULL COLOR PHOTOGRAPHIC IMAGES. 8.IF YOU WANT TO INSERT ANIMATION EFFECTS ON YOUR PRESENTATION,YOU WILL LOOK FOR A PNG FORMAT OF AN IMAGE. 9.BALANCE IS TO EVEN DISTRIBUTION;EMPHASIS IS TO ATTRACTING. 10,PICTOCHART MAKES A COMPLEX DATA BECOME MORE VISUALLY APPEALING TO THE AVERAGE USER. 11.SYMMETRICAL,ASYMMETRICAL,AND RADIAL ARE TYPES OF CONTRAST. 12.AN INFOGRAPHIC SHOULD BE SIMPLE.