Course Code: CSE-224(Sessional) Course Title: Object Oriented Programming Assignment – 01 1….

Course Code: CSE-224(Sessional) Course

Title: Object Oriented Programming

Assignment – 01
1. Print the sum, average and product of 5 numbers by creating a class with separate functions for each operation. (5)
2. Calculate the area of a trapezoid and display it using the constructor that takes parameters. (5)
3. Define a base class area_cl, which has member variables height and width. Create two derived classes called rectangle and isosceles that inherit area_cl. Have each class include a function called area() that returns the area of a rectangle or isosceles triangle as appropriate. (6)
4. Write a program that finds the maximum value in an array of elements. Do it with the help of returning objects from functions. (5)
5. Write a program to calculate the average height of all the students of a class. The number of students and their heights are taken as input by the user. Use array of object concept to implement this task. (5)
6. Take a two dimensional array of object as input and display the array by reversing the rows by using pointers to object. (5) Hint: Input: 1 2 Output: 2 1 34 43 56 65
7. Write a function called nego that reverses the sign of its integer parameter. Write the function in two ways – first by using a pointer parameter and then by using a reference parameter. Include a short program to demonstrate their operation. (7)
8. Define two classes car and truck each containing a private member variable speed. Find out whose speed is greater where one function is a member to a class and a friend of another. (7)
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!