3. The maximum load that can be placed at the end of a symmetrical wooden beam, such as the rectangular beam shown in Figure 2, can be calculated as the following L = $x1 dxc L is the maximum weight in lbs of the load placed on the beam, S is the stress in libs/in? I is the beam's rectangular moment of inertia in units of in d is the distance in inches that the load is placed from the fixed end of the beam (the moment arm") and, Cis one-half the height in inches of the symmetrical beam. Figure 2: symmetrical wooden beam For a 2" x 4" wooden beam, the rectangular moment of inertia is given by: - base x hieght 2** 10.67 c = X(4 in) - 2 in 12 12 a. Using this information, write a C++ program that computes the maximum load in lbs that can be placed at the end of an 8-foot 2* *4" wooden beam so that the stress on the fixed end is 3000 lb/in2 b. Use the program developed in Exercise 3a to determine the maximum load in lbs that Tutorial-due: May 27,2020 can be placed at the end of a 3* *6* wooden beam so that the stress on the fixed end is 3000 lbs/in2 Objective The purpose of this assignment is to get you started with C++ programming. You'll develop simple programs (with input and output) to solve simple mathematical and engineering problems. 1. Write a C++ program that calculates and displays the area of a triangle, such as the one in Figure 1. The area is given by this formula: Area = 12 (base) x (height). Note that the program must prompt the user to enter the values for base and height in inches. height b base Figure 1: A two-dimensional triangle 2. Write a C++ program to calculate the sum of the integers between two numbers. The formula to calculate this sum is: sum=2a+ (n - 1)d) n is the number of integers to be added. a is the first number. d is the difference between each number. Note that the program must prompt the user to enter the values of a and n. For example, if the user wants to calculate the sum between 1 and 100, s/he would enter 1 for a and 100 for n; and if the user wants to calculate the sum between 20 and 50, s/he would enter 20 for and 30 for n