Create a Python script which will accept a positive integer and will determine the input number if PERFECT, ABUNDANT, DEFICIENT.
I need the code to have an output.
Create a Python script which will accept two positive integers and will display the COMMON DIVISORS.
I need the code to have an output.
Create class called match; the class must have the following data members and methods:
Data Members:
•This class has two data members named HomeTeam and VisitorTeam which are of type Team, they will store that two teams that will play the Match.
Methods:
•This class doesn’t have a default constructor, it only has one constructor which receives two Team object that will be assigned to HomeTeam and VisitorTeam.
•setTeams(),which receives two Team object that will be assigned to HomeTeam and VisitorTeam.
•playMatch(), simulates match play by calling the scoreGoals methods of each team.
•getPlayGound(), returns the ground of play which is the HomeGound of the HomeTeam.
•isDrawMatch(), will return true if the Match is a draw and false if there is a winner. The match is a draw if the goals of the teams are equal. •getWinner(), returns the team which won the match, a team wins if its goals is higher than the goals of the other team.
Create a class called Match that will have team the class must have the following data members and methods:
Data Members:
• This class has two data members named HomeTeam and VisitorTeam which are of type Team, they will store that two teams that will play the Match.
Methods:
• This class doesn’t have a default constructor, it only has one constructor which receives two Team object that will be assigned to HomeTeam and VisitorTeam.
• setTeams(),which receives two Team object that will be assigned to HomeTeam and VisitorTeam.
• playMatch(), simulates match play by calling the scoreGoals methods of each team.
• getPlayGound(), returns the ground of play which is the HomeGound of the HomeTeam.
• isDrawMatch(), will return true if the Match is a draw and false if there is a winner. The match is a draw if the goals of the teams are equal.
• getWinner(), returns the team which won the match, a team wins if its goals is higher than the goals of the other team.
Write a program that will input 20 values to array BSIT and to sum up the content of all even index. Print array BSIT and the sum of all even index.
A method called sine, which takes as its only parameter a value of type double, and returns a value
of type double. The parameter represents an angle expressed in radians, and the value returned by
the method represents the trigonometric sine of this angle. For example, suppose the following method
call is executed:double sin = MathAssignment.sine(1.047197551);
.
Which attribute is used to define the font type
double sin = MathAssignment.sine(1.047197551); After the execution of the above method call, the value stored in variable sin will be (approximately) 0.866025404, as the sine of 1.047197551 radians is approximately 0.866025404. sine of an angle x, denoted sin x, can be calculated using the following algorithm
• If x < -π, repeatedly add 2π to x until -π ≤ x ≤ π. Conversely, if x > π, repeatedly subtract 2π from x until -π ≤ x ≤ π. You MUST use 3.141592653589793 as a value for π.
. The last term in this sum, tn, will be the first term whose absolute value is less than 10 -10 2. A method called absoluteValue, which takes as its only parameter a value of type double, and returns a value of type double. The parameter represents an arbitrary number, and the value returned by the method represents the absolute value of this arbitrary number. The absolute value of a number x, denoted |x|, is x if x is greater than or equal to 0, and -x if x is less than 0. double value MathAssignment.absoluteValue(-42.0);
10. find the class of each address.
a) 00000001 00001011 00001011 11101111
b) 11000001 10000011 00011011 11111111
c) 14.23.120.8
d) 252.5.15.111
Write short notes on:
a) Electronic mail
b) voice over IP
c) HTTP
d) FTP