Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

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:

  1. Include the header file named tools.h. It will include all other headers you need.
  2. In main(), declare a character array that is 26 slots long.
  3. Print a title on the first line of the output: “Program 1: A List Of Letters Used”. Print your name or names on the second line of the output and leave a blank line after that.
  4. Write an input loop, and repeat it until the sentinel character (#) appears:
  5. (a) Read a character from the keyboard.
  6. (b) Terminate the input loop when the user types a #.
  7. (c) Otherwise, if the letter is not alphabetic, reject it and continue at the top of the loop.
  8. (d) If the letter is upper-case, change it to lower case.
  9. (e) Now you have a lower-case letter; find out if it has already been entered by comparing it to each of the letters you have saved in your array. If it is a duplicate, reject it and continue at the top of the loop.
  10. (f) Now you have a NEW lower-case letter. Store it in the first unused slot in your char array

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.


LATEST TUTORIALS
APPROVED BY CLIENTS