CSE 232 Spring 2012 Computer Project #2 -- C++ Programming Assignment Overview: This assignment focuses on the design, implementation and testing of C++ programs. You will develop a C++ program for each of the problems below. It is worth 30 points (3% of course grade), and must be completed no later than 11:59 PM on Thursday, January 26. Assignment Deliverables: The deliverables for this assignment are the following files: proj02.problem1.cpp -- your C++ source code for Problem #1 proj02.problem2.cpp -- your C++ source code for Problem #2 Be sure to use the specified file names, and to submit your files for grading via the "handin" system. Problem #1 Specifications: Given the length, width, and height of a rectangular solid, display the surface area and the volume of the solid. Each of the three dimensions will be an integer number representing a measurement in inches. Input values: length of the solid width of the solid height of the solid Output values: surface area of the solid volume of the solid The program will prompt the user to enter each input value (in the order specified above). The program is not required to check any of the input values for user errors. The program must behave in a reasonable manner for any input values entered by the user; however, its behavior is only specified for positive input values. All program output will be appropriately formatted and labeled. Problem #1 Notes: 1) The surface area of a rectangular solid equals the sum of the areas of the six faces of the solid. 2) The volume of a rectangular solid equals the product of the length, width and height of the solid. 3) Use the following commands to translate and execute your program: g++ proj02.problem1.cpp a.out Problem #2 Specifications: Given the length of all three sides of a triangle, display the measure of each of the three interior angles (in both degrees and radians), the perimeter of the triangle, and the area of the triangle. The length of a side will be a real number representing a measurement in centimeters. Input values: length of side A of the triangle length of side B of the triangle length of side C of the triangle Output values: measure of the angle between sides A and B (in degrees and radians) measure of the angle between sides A and C (in degrees and radians) measure of the angle between sides B and C (in degrees and radians) perimeter of the triangle area of the triangle The program will prompt the user to enter each input value (in the order specified above). The program is not required to check any of the input values for user errors. The program must behave in a reasonable manner for any input values entered by the user; however, its behavior is only specified for positive input values. All program output will be appropriately formatted and labeled. All real values will be displayed with two fractional digits. Problem #2 Notes: 1) The radian measure of an angle equals the degree measure of the angle multiplied by pi and divided by 180. 2) The square of the length of any side of a triangle equals the sum of the squares of the lengths of the other two sides minus twice the product of the lengths of the other two sides and the cosine of the angle between them. 3) The perimeter of a triangle equals the sum of the lengths of the three sides of the triangle. 4) The area of a triangle equals one-half the product of the lengths of any two sides and the sine of the angle between them. 5) Use the following commands to translate and execute your program: g++ proj02.problem2.cpp a.out