/* CST116 - C++ Programming Abdullah Havaldar abdullah.havaldar@oit.edu Purpose: The purpose of this code is to find the area for a kite which the user enters the values of the width and height and give out the area of the kite Input: width (int), height (int) Output: Area (int/string) */ #include using namespace std; using std::cout; using std::cin; using std::endl; int main() { //seting up variables float length, width, area; //output prompt for user to enter length and width cout << "Please enter the length and width of your kite (in that order)." << endl; cin >> length >> width; //output confirmation stating what the user input cout << "So the length is " << length << "cm and the width is " << width << " cm." << endl; //calculating area and turning it to square meteres area = ((width * length) / 2); area /= 10000; //telling the user how many square meters their kite is cout << "The area of your kite is " << area << " square meters." << endl; }