Question: 1. Write a C++ program to read two integer values from a keyboard and assign to two variables, and then swap the two values. Your

1. Write a C++ program to read two integer values from a keyboard and assign to two variables, and then swap the two values. Your program should display values from variables before and after swapping.

2. With the support of an example briefly describe the basic structure of a C++ program

3. Write a C++ program to display the following tabular output

FirstNameSirNameAgeBirthPlace

4 Write a C++ program which will compute and display the square of the sum of four integers. Display four integers used and the sum of these four integers.

5. Write a C++ program to read two sides of a triangle and the angle between them in degrees, then calculate and display the area of the triangle.

Given:

A of a triangle = (side1)(side2)Cos(angle between)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!