Composite Number
Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.
Input
The first line of input is an integer N.
Output
The output should be True or False.
Explanation
In the given example,
12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.Therefore, the output should be
True.
Sample Input 1
12
Sample Output 1
True
Sample Input 2
3
Sample Output 2
False
1. Describe fundamental concepts in computer programming.
2. Differentiate between high and low-level languages.
3. Demonstrate basic debugging techniques.
4. Develop simple calculations in Python.
Create a program in python that will accept a name of a student and subject final grades. Number of subjects will be 5, name of subjects are English, Math, Filipino, MAPEH and Science.
The program must print the name of the student, the results per subject and the average of the 5 subjects. The final grades are all integers but the average is not.
Sample Run:
Name of Student: Ramoncito Dealca
English Exam Result: 89
Math Exam Result: 97
Filipino Exam Result: 88
Science Exam Result: 98
MAPEH Exam Result: 86
Student Name Ramoncito Dealca
Score in English: 89
Score in Math: 97
Score in Filipino: 88
Score in Science: 98
Score in MAPEH: 86
Average: 91.60
Make a program which accepts a 3 digit number from user and check & confirms whether it is
an Armstrong number or not. Proper message should be displayed as the result.
Interface should be attractive and Numbers should be between 100 - 999.
Armstrong number of 3 digits, the sum of cubes of each digit is equal to the number itself.
Write a code to find out the sum of the sequence 2 -4 6 -8 10 -12.... while the last value will be determined from input. Use a loop to solve the problem.
Our users do not want to have to re-enter the price levels each time the app starts.
Therefor, we need to save the price levels to a file on disk – called levelsFile - and populate the levelsList with the file’s items when the app starts.