Cpplab
Cpplab
Lab-1: Basic programs in C++ (Topics: Variables, Datatypes, For loop and while loop)
1. Write a C++ program to swap two numbers?
2. Write a C++ program to check whether the give number is a palindrome or not?
3. Write a C++ program to display the fibanocci series?
4. Write a C++ program to print the pyramid triangle shape with stars and numbers range upto five
lines?
5. Write a C++ program to convert temperature in Celsius to Fahrenheit?
Topics: control structures and conditional statements
6. Write a C++ program to find the student grade based on the marks using switch case?
7. Write a C++ program to check whether the given number is prime number or not?
8. Write a C++ program to find the given number is even or not?
9. Write a C++ program to find vowels and consonants in a given word?
10. Write a C++ program to find largest among three numbers?
11. Write a C++ program to check whether it is a leap year or not?
Lab-2: Programming with arrays and strings (Topics: Arrays and Strings)
1. Write a C++ program to find sum and average of 10 numbers using arrays?
2. Write a C++ program to find largest and smallest element of an array?
3. Write a C++ program for two matrix addition?
Topic: Strings
4. Write a C++ program to find frequency of characters of strings?
5. Write a C++program to find number of vowels, consonants, digits and spaces in a given sentence?
6. Write a C++ program to remove all the characters except alphabets yin a given sentence (Ex: IDNO)?
Lab-5: File handling (File handling and streams, Read and Write operations)
1. Write a C++ program to read input from user and Write into output file?
2. Write a C++ program to read data from input file and Write it into output file?
3. Write a C++ program reading data from user and append the data into output file?