Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
49 views1 page

Lab Program Assignments-1

The document outlines 7 programming assignments for a C++ lab program. The assignments include writing programs to display output using cout, input and display ASCII values, use classes for temperature conversion, swap values using reference variables, print a pyramid pattern using for loops, explain different storage classes, and multiply matrices.

Uploaded by

samir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Lab Program Assignments-1

The document outlines 7 programming assignments for a C++ lab program. The assignments include writing programs to display output using cout, input and display ASCII values, use classes for temperature conversion, swap values using reference variables, print a pyramid pattern using for loops, explain different storage classes, and multiply matrices.

Uploaded by

samir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Program Assignments-1

1. Write a C++ program to display the following output using a single cout statement.
maths=90
physics=89
chemistry=97
2. Write a C++ program that inputs a charater from keyboard and display its corrsponding ASCII
value on the screen.

3. Write a C++ program using class called temperature and memeber functions for a temperature
in Fahrenheit and display it in Celsius.

4. Write a C++ program function using reference variables as arguments to swap the values of a pair
of intergers.

5. Write a C++ program to print the following output using for loops.

1
2 2
3 3 3
4 4 4 4
5 5 5 5 5 5

6. Write a C++ program which explains and show different storage classes auto, extern static and
Register.

7. Write a C++ program to multiply the follwing matrix.

[1 1 3
A= 2 1 2
4 3 1]

[6 1 3
B= 1 1 2
9 3 1]

You might also like