Question: C++!!!!! Please write this in C++ only , not java not python just C++! 5. Input, Output, and Processing Results Write a C++ program called

C++!!!!! Please write this in C++ only, not java not python just C++!

C++!!!!! Please write this in C++ only, not java not python just

5. Input, Output, and Processing Results Write a C++ program called Lab1B.cpp that reads input from the keyboard and prints output to the screen using cin and cout, respectively. Specifically, you are to write a complete C++ program that does the following to calculate the area of a trapezoid as follows: 3 CSCE 1045 - Lab 1 b1 h b2 a. Prompt for and read in both bases (i.e., b1 and b2) bf the trapezoid. b. Prompt for and read in the vertical heighth of the trapezoid. C. Calculate the area of the trapezoid using the formula: (b1 + b2) Area = hx 2 where bl is the top base, b2 is the bottom base, and h is the vertical height. d. Print the area result of the trapezoid in a meaningful message to the terminal. Be sure to use prompts and output that are meaningful. Do not worry about units, but both bases and the vertical height of the trapezoid should be in whole numbers (i.e., integers) while the area (because of the area formula) should be as a floating-point number. But be careful to avoid integer division - your resulting area should be accurate! Make sure that your program compiles and runs as expected. Note that you will submit this file to Canvas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!