CIS22A - Fall 2019 - Lab Exercise 3

due Wednesday, 10/9 8:30 am

Lab exercises are not accepted late.

Put your name, Lab Exercise 3, and compiler and the operating system used in a comment at the top of your program. Email only your source code. Your source code should be sent as an attachment (with the name ex3.cpp).  Use "Ex3" as the subject of your email submission

Program Requirements

Write a program to calculate the area of a triangle.  Use the formula

Area = 1/2 * base * height

Prompt the user for the base and height.  Use type double to store the base and height.  Use a static_cast to make sure 1/2 does not equal 0.  Your output should look something like this:

Enter base and height => 2.3 4.5
The area is 5.175