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


  2) The __________ class provides static methods to start, stop, or filter Windows message in an application.

            A) Forms B) Control C) Windows  D) Application


Discuss three responsibilities that an operating system has for file management in a computer system.


Discuss the 4 categories in which work concerning information security and protection relating to Operating Systems are grouped.

Largest Number in the List:

You are given space-separated integers as input. Write a program to print the maximum number among the given numbers.


Product of Elements in the List:

You are given a space-separated list of integers as input. Write a program to print the product of these numbers.


Add two polynomials

Given two polynomials A and B, write a program that adds the given two polynomials A and B.Input


The first line contains a single integer M.

Next M lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes co-efficient of Pi for polynomial A.

After that next line contains a single integer N.

Next N lines contain two integers Pj, Cj separated with space, where Pj denotes power and Cj denotes co-efficient of Pj for polynomial B.Output


Print the addition of polynomials A and B.

The format for printing polynomials is: Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0, where Pi's are powers in decreasing order, Ci is co-efficient and C0 is constant, there will be space before and after the plus or minus sign.




Input 2

4

0 5

1 0

2 10

3 6

4

0 -5

1 0

2 -10

3 -6


output





Secret Message - 2

Given a string, write a program to print a secret message that replaces characters with numbers 'a' with 1, 'b' with 2, ..., 'z' with 26 where characters are separated by '-'.


Note: You need to replace both uppercase and lowercase characters. You can ignore replacing all characters that are not letters.


abcdefghij12345678910

klmnopqr1112131415161718

stuvwxyz1920212223242526Input


The input will be a string in the single line containing spaces and letters (both uppercase and lowercase).Output


The output should be a single line containing the secret message. All characters in the output should be in lower case.Explanation



Input 1

python

Output 1

16-25-20-8-15-14


Input2

python learning

Output 2

16-25-20-8-15-14 12-5-1-18-14-9-14-7





Numbers in String - 1

Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.Input


The input will be a single line containing a string.Output


The output should contain the sum and average of the digits of all numbers that appear in the string.

Note: Round the average value to two decimal places.Explanation


For example, if the given string is "I am 25 years and 10 months old", the digits of all numbers that appear in the string are 2, 5, 1, 0. Your code should print the sum of all digits(8) and the average of all digits(2.0) in the new line.


Input 1

I am 25 years and 10 months old

Output 1

8

2.0


Input 2

Anjali25 is python4 Expert


Output 2

11
3.67

Given a student has scored

M marks in Maths, P marks in Physics and C marks in Chemistry. Write a program to check if a student is eligible for admission in a professional course. If any one of the below conditions is satisfied, then the student is eligible.1) M >= 70 and P >= 60 and C >= 60

2) M + P + C >= 180

Input

The first line is an integer

M, the second line is an integer P, and the third line is an integer C.Output

The output should be a single line containing

True if it satisfies the given conditions, False in all other cases.


Create the following classes (The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Design two more classes; Faculty and Staff and extend them from Employee. The detail of classes is as under: 1). A person has a name, address, phone number, and email address. 2). A student has a status (String). 3). An employee has an office, salary, and date hired. Use the Date class to create an object for date hired. 4). A faculty member has office hours and a rank. 5). A staff member has a title. 6). Create display method in each class.
LATEST TUTORIALS
APPROVED BY CLIENTS