Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.


Given N number of days as input,write a progrme to convert N number of days to years (Y),weeks (W) and days (D).
Note:take 1 year=365days

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.


Write a Python program that takes a number from the user and prints the divisors of that
number and then print how many divisors were there. [The input number has to be an
INTEGER]
Input:
6
Output:
1, 2, 3, 6
Total 4 divisors.
Write a Python code of a program that asks the user to enter ten numbers then display
the total and the average of ONLY the even numbers among those ten numbers.
Write a Python code that will read 10 numbers from the user, and then display the total
and the average of ONLY the odd numbers among those ten numbers.
LATEST TUTORIALS
APPROVED BY CLIENTS