Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.36 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.36 KB

C++ Coders Pack

This folder contains all the task solutions to MyCaptain's C++ Language workshop.

The tasks are -

  1. Write a C++ program to print ASCII value of a character.

  2. Write a C++ program to check if the given number is even or odd.

  3. Write a C++ program to check if the given year is a leap year.

  4. Write a C++ program to calculate sum of all the elements of an array.

  5. Write a C++ program to find the largest and smallest element in an array.

  6. Write a C++ program to sort elements of array in ascending order.

  7. Write a C++ program to swap two numbers using function.

  8. Write a C++ program to check whether two given strings are an anagram.

    Test Data:

    Input the first String: spare
    Input the second String: pears
    

    Expected Output:

    spare and pears are Anagram.
    
  9. Write a C++ program to convert specified days into years, weeks and days. Note: Ignore leap year.

    Test Data :

    Number of days : 1329
    Expected Output :
    Years: 3
    Weeks: 33
    Days: 3
    
  10. Write a C++ program to convert a string to lowercase.

  11. PROJECT (OPTIONAL) For submitting the project, paste the entire code in the Description Box and Attach Screenshots of the Output.