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

Write a program to overload unary operator for complex class. Overload the pre and post decrement operator to work for the statements 

C1++;

++C1; 

Overload any operator of your choice to find the modulus of a complex number. [ Note: void return type]

Also rewrite this program to overload the operators as friend function.


Write a program to add two objects of time class. Overload the operator ‘==’ to compare two objects and display whether they are equal or not. Also rewrite this program to overload the operators as friend function.


Create a class which allocates the memory for a string through dynamic constructor. Overload 

  • the binary + to concatenate two strings and display it. 
  • relational operator < to compare the length of the two string.

Also rewrite this program to overload the operators as friend function.


Create a class which stores distance in feet and inches. Overload the ++ (post and pre) operator for the class for the statements D2=++D1 and D2=D1++ as member function. Also rewrite this program to overload the operators as friend function.


An applicant will accepted to the Jedi Knight Military Academy if he is least 200 cm. tall; age is between 21 and 25, inclusive; and a citizen of the Planet Endor. However, if the applicant is a recommendee of Jedi Master Obi Wan, he is accepted automatically regardless of his height, age and citizenship. Write a program that would input the applicant’s height, age, citizenship code(“C” for citizen of Endor, “N” for non-citizen), and recommendee code (“R” for recommendee, “N” for non-recommendee) and then output whether the applicant is accepted or rejected.

3x4 sin(180x) + 4x3 cos(90x) + x2 sin(tan(45)) + 7x + 9cos(90x2 )


Foundations Page


In this assignment, let's build a Foundations page by applying the concepts we learned till now. You can use the Bootstrap concepts as well.

Refer to the below image.


https://assets.ccbp.in/frontend/content/static-website/foundations-output-v2-img.png



Resources

Use the image given below.


  • https://assets.ccbp.in/frontend/static-website/foundations-bg.png
  • https://assets.ccbp.in/frontend/static-website/foundations-python-img.png
  • https://assets.ccbp.in/frontend/static-website/foundations-javascript-img.png
  • https://assets.ccbp.in/frontend/static-website/foundations-html5-img.png
  • https://assets.ccbp.in/frontend/static-website/foundations-java-img.png


CSS Colors used:


Background color Hex Code values:


#ffffff


Text color Hex Code values:


#323f4b

#7b8794


Border color Hex Code values:


#cbd2d9


CSS Font families used:

  • Roboto
Write a general error handling class that has general functions that would take in a string, which the main pages would get as an input and those functions can search for specific things. For example: any sort of input from the user where we would expect them to make a mistake( like where they enter numbers into their name in user login) and where the user must enter atleast one cap character in the text field if not it returns an error.

The maximum height reached by a ball thrown with an initial velocity, v, in meters/sec, at an angle of θ is given by this formula:

height = (.5 × v2 × sin2 θ) / 9.8

Using this formula, write, compile, and run a C++ program that determines and displays the maximum height reached when the ball is thrown at 5 mph at an angle of 60 degrees. (Hint: Make sure to convert the initial velocity into the correct units. There are 1609 meters in a mile.) Calculate the maximum height manually, and verify the result your program produces. After verifying that your program works correctly, use it to determine the height reached by a ball thrown at 7 mph at an angle of 45 degrees.


Write a function that replaces the elements of an integer sequence whose value a is the value of b. Write a main program that uses that function and displays the resulting sequence of numbers on the screen. (Example: for the integer sequence 1, 2, 5, 2, 6, 7, 8, 12. Replace the numbers with the value 2 with the number with the value of 9, then we get the result sequence 1, 9, 5, 9, 6, 7, 8, 12)



LATEST TUTORIALS
APPROVED BY CLIENTS