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

Add two polynomials


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


Output

Print the addition of polynomials A and B.

If the degree of polynomial is zero and the constant term is also zero, then just print 0 to represent the polynomial.

For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.


for Question and Test Cases, Inputs and Outputs See this below url link


https://drive.google.com/file/d/1dEzy0tHPt-dveknUMw8ml85IARaoLcsE/view?usp=sharing


The above url link contains Add two polynomials question and total 4 test cases, Inputs and Outputs


We need all test cases can be came when code was run. I want exact outputs for all test cases


Add two polynomials


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


Output

Print the addition of polynomials A and B.

If the degree of polynomial is zero and the constant term is also zero, then just print 0 to represent the polynomial.

For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.Explanation


for Question and Test Cases, Inputs and Outputs See this below url link

https://drive.google.com/file/d/1dEzy0tHPt-dveknUMw8ml85IARaoLcsE/view?usp=sharing

The above url link contains Add two polynomials question and total 4 test cases, Inputs and Outputs


We need all test cases can be came when code was run. I want exact outputs for all test cases




Create a python program that allows user to enter the following information – Name(string), Course(string), Score(float) and Grade(integer). Display the following information in this format:

<Name>, a <Course> student got a raw score of <Score> equivalent to <Grade> percent final grade.


Create a webpage that has an image that opens a page with the Wikipedia website when clicked. Refer to the sample below for clarification.

Note: When inserting the link to your image into your code, be sure to use the full URL, including https:// at the start of the URL.




Numbers in String - 2
Given a string, write a program to return the sum and average of the 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 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 numbers are 25, 10. Your code should print the sum of the numbers(35) and the average of the numbers(17.5) in the new line.
Sample Input 1
I am 25 years and 10 months old
Sample Output 1
35
17.5

Sample Input 2
Tech Foundation 35567
Sample Output 2
35567
35567.0

sample input 3
1time3 %times4
sample output 3
8
2.67
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.
Sample Input 1
I am 25 years and 10 months old
Sample Output 1
8
2.0

Sample Input 2
Tech Foundation 35567
Sample Output 2
26
5.2

Sample Input 3
Anjali25 is python4 Expert
Sample Output 3
11
3.67

write a tkinter gui program in python that collects contact details from the user. Contact details refer to the contact’s full name (first name and last name), phone number, date of birth and a category that the contact belongs to (Friends, Family, Work, Other)

The Phone Book will display the following Menu and will support the corresponding functionality: **************** Phone book Menu******************

Enter your choice:

1: Add a new contact

2: Remove an existing contact

3: Look up a contact

4: Update a contact phone number

5: Display all contacts

6: Delete all contacts

7: Exit phonebook


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.
Sample Input 1
I am 25 years and 10 months old
Sample Output 1
8
2.0

Sample Input 2
Tech Foundation 35567
Sample Output 2
26
5.2

Sample Input 3
Anjali25 is python4 Expert
Sample Output 3
11
3.67

Mean, Median and Mode

Given a list of integers, write a program to print the mean, median and mode.

Mean - The average value of all the numbers.

Median - The mid point value in the sorted list.

Mode - The most common value in the list. If multiple elements with same frequency are present, print all the values with same frequency in increasing order.Input


The input will be a single line containing space-separated integers


Sample Input 1

2 4 5 6 7 8 2 4 5 2 3 8

Sample Output 1

Mean: 4.67

Median: 4.5

Mode: 2


Sample Input 2

2 6 3 1 8 12 2 9 10 3 4

Sample Output 2

Mean: 5.45

Median: 4

Mode: 2 3


.


What is the main difference between the PC and Apple?

  1. Apple has experimented beyond pure functionality as far as aesthetics of their machines is concerned.
  2. PC has experimented beyond purr functionality as far as aesthetics of their machines is concerned
  3. The look and feel of Microsoft Windows Environment and Mac are very similar
  4. Apple and Microsoft got the idea of the GUI from Xerox.
LATEST TUTORIALS
APPROVED BY CLIENTS