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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started