name : Ahmed hashem abdelrehim
Posted: Tue Apr 12, 2022 10:23 am
name : Ahmed hashem abdelrehim
(a) Design, write and compile a C++ program to display the following output: "My name is --(Type your name) My student ID No. is. ..(Type your student ID) I love C++ Programming." - EE209/BEE1053 Computing for Engineers () Design, write and compile a C++ program to display the output in Question 1(a) inside a box drawn with asterisks 2. (a) Design, write and compile a C++ program to display the following output using setwo, setprecision(), setiosflagse): Radians ***** Degrees 57.2958 572.9580 1145.9200 1718.87000 22913000 (b) What is the minimum number of cout statements that could be used to print the above output? (c) Explain your choice of coding style with your chosen number of cout statements. Design, write and compile a CH program to calculate and display the midpoint coordinates of the line segment connecting the two endpoints given by the formula ((x1+x2/2). (y1+y292) Your program should prompt the user to iput the values of xl, x2, yl and y2, then calculate and display the midpoint coordinates. Verify your program by using the following test data: Point 1 = (10.2) and Point 2 = (6,12) i.e x1 =10, x2 = 6, y1 = 2 and y2 = 12
My student ID No.is (lype your student ID). I love C++ Programming." - EE209/BEE1053 Computing for Engineers (b) Design, write and compile a C++ program to display the output in Question 1(a) inside a box drawn with asterisks (*). 2. (a) Design, write and compile a C++ program to display the following output using setw(), setprecision(), setiosflags(): Radians 1 10 20 30 40 Degrees 57.2958 572 9580 1145.9200 1718.87000 229183000 (b) What is the minimum number of cout statements that could be used to print the above output? (c) Explain your choice of coding style with your chosen number of cout statements. Design, write and compile a C++ program to calculate and display the midpoint coordinates of the line segment connecting the two endpoints given by the formula ((x1+x2/2), (y1+y2)/2) Your program should prompt the user to put the values of xl. x2, yl and y2, then calculate and display the midpoint coordinates. Verify your program by using the following test data: Point 1 = (10,2) and Point 2 = (6,12) i.e; x1 =10, x2 = 6, y1 = 2 and y2 = 12 Next, use your program to complete the following chart. Midpoint First Point 140 (223) -108 -12,2) 3.1.6 01-6 Second Point (16,180 18.123 (14.41 (141) (20.16
(a) Design, write and compile a C++ program to display the following output: "My name is --(Type your name) My student ID No. is. ..(Type your student ID) I love C++ Programming." - EE209/BEE1053 Computing for Engineers () Design, write and compile a C++ program to display the output in Question 1(a) inside a box drawn with asterisks 2. (a) Design, write and compile a C++ program to display the following output using setwo, setprecision(), setiosflagse): Radians ***** Degrees 57.2958 572.9580 1145.9200 1718.87000 22913000 (b) What is the minimum number of cout statements that could be used to print the above output? (c) Explain your choice of coding style with your chosen number of cout statements. Design, write and compile a CH program to calculate and display the midpoint coordinates of the line segment connecting the two endpoints given by the formula ((x1+x2/2). (y1+y292) Your program should prompt the user to iput the values of xl, x2, yl and y2, then calculate and display the midpoint coordinates. Verify your program by using the following test data: Point 1 = (10.2) and Point 2 = (6,12) i.e x1 =10, x2 = 6, y1 = 2 and y2 = 12
My student ID No.is (lype your student ID). I love C++ Programming." - EE209/BEE1053 Computing for Engineers (b) Design, write and compile a C++ program to display the output in Question 1(a) inside a box drawn with asterisks (*). 2. (a) Design, write and compile a C++ program to display the following output using setw(), setprecision(), setiosflags(): Radians 1 10 20 30 40 Degrees 57.2958 572 9580 1145.9200 1718.87000 229183000 (b) What is the minimum number of cout statements that could be used to print the above output? (c) Explain your choice of coding style with your chosen number of cout statements. Design, write and compile a C++ program to calculate and display the midpoint coordinates of the line segment connecting the two endpoints given by the formula ((x1+x2/2), (y1+y2)/2) Your program should prompt the user to put the values of xl. x2, yl and y2, then calculate and display the midpoint coordinates. Verify your program by using the following test data: Point 1 = (10,2) and Point 2 = (6,12) i.e; x1 =10, x2 = 6, y1 = 2 and y2 = 12 Next, use your program to complete the following chart. Midpoint First Point 140 (223) -108 -12,2) 3.1.6 01-6 Second Point (16,180 18.123 (14.41 (141) (20.16