Program DescriptionThis program will calculate the area of a
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Program DescriptionThis program will calculate the area of a trapezoid. The program will ask the user to enter the two basesand height and then use these values to calculate and then print the area of the trapezoid. The designstep will include pseudocode. AnalysisI will use sequential programming statements.I will define three float numbers for the two bases and the height: baseA, baseB, height.Float numbers were selected as opposed to integers to make sure trapezoids of all dimensions arepossible and not just whole numbers.Float number will store the area: areaThe area will be calculated by this formula:Area = ½ * (baseA + baseB) * heightFor example if the bases are 4.7 and 2.1, and the height is 5.3 the area is calculated as:Area = ½ * (4.7 + 2.1) * 5.3 = ½ * 6.8 * 5.3 = 3.4 * 5.3 = 18.02
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds