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

The user will input 5 grades. Determine individual subjects either passed or failed. Lastly, calculate the average grade and determine whether if passed or failed.











Sample output:



Student Name: Jessica


Math: 74



Science: 89.5



English: 74



Geography: 82



Filipino: 80



*Average Grades: 79.9




*If the average grade is >= 75 the output should be



PASSED!




*If the subject grade is below 74 the output should be



You need to re-take in Math Subject and English Subject




*If the average grade is <= 74 the output should be



YOU FAILED!

1. Write a program using string functions that determine if the input word is a palindrome. A palindrome word is a word that produces the same word when it is reversed.




Sample Input/output Dialogue:



Enter a word: AMA



Reversed: AMA



“It is Palindrome”




Enter a word: HELLO



Reversed: OLLEH




Make a C++ program that will print the values of array named areas with values {84,76,48} using while loop.

write a program to print the product of given two numbers.



Input the first line of input will contain and integer.



the second line of input will contain an integer.

Write a program to declare a structure and inside it is a non-static


method that returns the area of a rectangle.


Test Data and Sample Output:


Input the dimensions of a rectangle:


Length: 60


Width: 30


Expected Output:


Length: 60


Width: 30


Area: 1800

Write a program that declares a simple structure, declare at least two



variables with different data types and a static method in c#

Create a 500 element array and load the array with a series of numbers starting at the first position that is the square of the index. For example, at position 0 would be 0, at position 1 would be 1, at position 2 would be 4, at position 3 would be 9…. Etc. Ask the user for a number between 0 and 250,000 and let them know if that number is a square. Employ a binary search. 


Write a C++ program to create a class "Wall" with private data members "length & height and public member functions "findArea & Wall

Swap Competition




An English competition is being held where players have to play in groups of two. One of the players is given a word, and the second player has to choose a word such that, it is a rearrangement of the letters in the first player's word. They win if the above condition is satisfied. The number of groups is given by T.Write a programthat gives YES if they win and NO in the other case.




Note: All characters in the input will be in lower case.




Input




The first line of the input contains an integer T Each of the next T lines contains two words separated by space.




Output




The output should have the results of each of the T are given in the input.




groups that



All the results are separated by space.



Explanation




Given pairs




noon moon




part trap







Sample Input 1




2




noon moon part trap




Sample Output 1




NO YES




Sample Input 2




2




car rac




lock clock




Sample Output 2




YES, NO





A class called MyPoint, which models a 2D point with x and y coordinates. It contains:



 Two private instance variables x (int) and y (int).


 A constructor (__init__()) that constructs a point with the given x and y coordinates.


 Getter and setter for the instance variables x and y.


 Method setXY() to set both x and y.


 Method getXY() which returns the x and y in a 2-element list.


 A __str__ method that returns a string description of the instance in the format "(x, y)".


Method called distance(self, anotherpoint) that returns the distance from this point to the given MyPoint instance (called another), e.g.,



p1 = MyPoint(3, 4)


p2 = MyPoint(5, 6)


print(p1.distance(p2))



Method called distance_from_origin() method that returns the distance from this point to the origin (0,0), e.g.,



p1 = MyPoint(3, 4)


print(p1.distance_from_origin())

LATEST TUTORIALS
APPROVED BY CLIENTS