This folder contains all the task solutions to MyCaptain's C++ Language workshop.
The tasks are -
-
Write a C++ program to check if the given number is even or odd.
-
Write a C++ program to check if the given year is a leap year.
-
Write a C++ program to calculate sum of all the elements of an array.
-
Write a C++ program to find the largest and smallest element in an array.
-
Write a C++ program to sort elements of array in ascending order.
-
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.
-
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
-
PROJECT (OPTIONAL) For submitting the project, paste the entire code in the Description Box and Attach Screenshots of the Output.