a. Write a python script to take two string S1 and S2 and do the following:
i) Check S1 and S2 are anagrams or not.
ii) Check S1 is Sub string of S2 or not.
iii) S1 is palindrome or not
Enum
Create a class for enum named ‘TypeOfAccount’. And declare the following enum:
TypeOne
TypeTwo
TypeThree
TypeOne represents “Saving Account”, TypeTwo for “Salary Account” and TypeThree is “Checking Account”
Also create a class with Main Method, where you will do the following operations:
Allows the user to input a TypeAccount enum
Displays the value that the enums represents
If the input enum is incorrect, display an error message
Write a program named ArrayDemo that stores an array of 10 integers. int[] numbers = {7, 6, 3, 2, 10, 8, 4, 5, 9, 1}
Until the user enters a sentinel value, allow the user four options:
(1) to view the list in order from the first to last position in the stored array
(2) to view the list in order from the last to first position (without permanently changing in order of the array)
(3) to choose a specific position to view
(4) to quit the application.
Yes, use the num array given above.
Inside, include your name and a description of what the program does and how to use it, as well as pertinent comments. Use meaningful variable names. Put your name in the project name and in the name of the .cs file. Failure to do these things will result in my not grading your submission.
Write a program to print the sum of two numbers, A and B. If their sum is less than 10, otherwise print the product of numbers
Write a C program that follows these guidelines:
size1 and size2 are the sizes of two files, and space is the amount of available space on a flash drive. Write a function that takes these integer numbers as arguments and figures out the largest combination of files that fits on a flash drive. The method should return 3 if both files fit together, the file number (1 or 2) corresponding to the longest file that fits by itself (1 if the files are the same size), or 0 if neither file fits on the flash drive.
Your function must have only one return statement.
In C#, please.
Enter number of elements [Max=50] for Array MyUDA1D: 12
Enter value for MyUDA1D [0]: 1
Enter value for MyUDA1D [1]: 12
Enter value for MyUDA1D [2]: 10
Enter value for MyUDA1D [3]: 3
Enter value for MyUDA1D [4]: 5
Enter value for MyUDA1D [5]: 6
Enter value for MyUDA1D [6]: 2
Enter value for MyUDA1D [7]: 4
Enter value for MyUDA1D [8]: 7
Enter value for MyUDA1D [9]: 8
Enter value for MyUDA1D [10]: 9
Enter value for MyUDA1D [11]: 11
------------------------------------------------
Minimum value = 1
Maximum value = 12
Total number of odd number/s = 6
Total number of even number/s = 6
Total number of deficient number/s = 10
Total number of efficient number/s = 1
Total number of perfect numbers = 1
Total number of prime number/s = 5
Total number of composite number/s = 6
------------------------------------------------
Sorted Values
Ascending Order = 1 2 3 4 5 6 7 8 9 10 11 12
Descending Order = 12 11 10 9 8 7 6 5 4 3 2 1
In C#, please.
Create a program that will accept 25 inputs into integer array Task2DArray and
compute for the sum and difference of all the elements.
In C#, please.
Create a program that will accept inputs into 6x6 36-element two-dimensional
integer array Int2D6x6Array. Your program should count the duplicate numbers appeared
in the list of accepted values. Moreover, you are also tasked to display the duplicate
numbers that appeared in the list.
In C#, please.
Create a program that will accept inputs into 5x5 25-element two-dimensional
integer array Count2D5x5Array. Your program should count the odd and even numbers
that appeared in the list of accepted values.