trapezoid is a convex quadrilateral computer science homework help

1-

A trapezoid is a convex quadrilateral with at least one pair of parallel sides as shown in the figure below

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Place an Order

The formula to compute the area of a trapezoid:

Get Assignment Writing Help

Our experts are ready to complete your assignment, course work. essay, test, dissertation, research paper, quiz

Get Started

Write a header fileTrapezoid.h containing the Trapezoidclass definition and the source file Trapezoid.cpp containing the class implementation and the main method.

Your class should include attributes a, b and h as float, a constructor to initialize them and a method computeArea(), of type double, to compute the area of the trapezoid as given in the formula above.

In the main method, prompt the user to enter each attribute a, b and h from the keyboard before passing them to the constructor.

2=

In the attachment, there are two header file definitions for class Car and class Engine, and the Source.cpp which contains the main method.

Complete the header file by including the inclusion guard for both header files and completing the implementation of the public methods in Car.cpp and Engine.cpp

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Order Over WhatsApp Place an Order Online

"Do you have an upcoming essay or assignment due?


Get any topic done in as little as 6 hours

If yes Order Similar Paper

All of our assignments are originally produced, unique, and free of plagiarism.

Stuck with a Question?

Get it solved from our top experts within 8 hrs!

Ask Your Question Now!

"Are you looking for a similar assignment? if yes, we are ready to help"

Order New Solution

You will get 100% plagiarism free and professional written paper.