Polynomial
Given polynomial,write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1+....+C1x+C0 format.
Input
The first line contains a single Integer N.
Next N lines contain two integers Pi,Ci separated with space, where Pi denotes power and Ci denotes coefficient of Pi.
Sample Input 1
5
0 2
1 3
2 1
4 7
Sample output 1
7x^4 + 6x^3 + x^2 + 3x + 2
Sample input 2
4
0 5
1 0
2 10
3 6
Sample output 2
6x^3 + 10x^2 + 5
Add two Polynomials
Given two Polynomials A and B,write a program that adds the given two Polynomials A and B.
Sample input 1
4
0 5
1 0
2 10
3 6
Sample Output 1
Sample Input 2
4
0 5
1 0
2 10
3 6
3
0 1
1 2
2 4
Sample output 2
6x^3 + 14x^2 + 2x + 6
IPL Match Details
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the terms based on the outcome of the match.
A win earns a team 3 points.A draw earns 1.A loss earns 0.
The following information is expected:
MP:Matches Played
W:Matches Won
D:Matches Drawn(Tied)
L:Matches Lost
P:Points
The team information should be displayed in descending order of points.
Sample input 1
6
CSK;RR;loss
RR;DD;draw
MI;KKR;win
KKR;RR;loss
CSK;DD;draw
MI;DD; draw
Sample output 1
Team: RR, Matches Played: 3, Won: 2, Lost: 0, Draw: 1, Points: 7
Team: MI, Matches Played: 2, Won: 1, Lost: 0, Draw: 1, Points: 4
Team: DD, Matches Played: 3, Won: 0, Lost: 0, Draw: 3, Points: 3
Team: CSK, Matches Played: 2, Won: 0, Lost: 1, Draw: 1, Points: 1
Team: KKR, Matches Played: 2, Won: 0, Lost: 2, Draw: 0, Points: 0
Build a GPA calculator that inputs grades of 3 different subjects along with the credit hours
from the user and displays the user’s GPA. The input grades and their corresponding grading
points are given below.
Grade Points
A 4.0
A- 3.67
B+ 3.33
B 3.0
B- 2.67
C+ 2.33
C 2.0
C- 1.67
D+ 1.33
D 1.0
F 0
The formula is
GPA = (GP1 * CH1 + GP2 * CH2 + GP3 * CH3)/ (CH1 + CH2 + CH3)
Where GP1 is Points of Subject 1 and CH1 show credit hours of subject 1.
I need help with this, I dont have money so please do this for free.
Write a program that uses a two-dimensional list to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods:
a) Method getData: This method reads and stores the data in the two-dimensional list.
b) Method averageHigh: This method calculates and returns the average high temperature of the year.
c) Method averageLow: This method calculates and returns the average low temperature of the year.
d) Method indexHighTemp: This method returns the index of the highest temperature in the list.
e) Method indexLowTemp: This method returns the index of the lowest temperature in the list.
Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method. Call this method and print the results.
Write a program with a method named getTotal that accepts two lists that contain numbers as arguments and return the sum of the numbers and their average. Call this method and print the results.
4.1 Write a program for each of the following:
(a) Listing all students whose CUM is K or higher. (Test the program using K = 3.00.)
(b) Listing all students in year L. (Test the program using L= 2, or sophomore.
Day Name-2