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

write a function to parse the below pattern onto a text file and highlight the matched pattern using the sliding window concept. AATAA,ATTAAA,TATA,CAT,ATAGTCGC and slicing by 32 bases


apart from init, identify any three system processes or daemons and outline their function


The following flowchart finds if the triangle is isosceles, equilateral, or scalene. Some boxes in the flowchart are filled in for you, fill in the rest of the details.

HintIn an equilateral triangle three sides are equal.

 In an isosceles triangle two sides are equal.

 In a scalene triangle three sides are not equal. 



Write a C++ program in which you define a class String and declare two string objects. Your class should contain special function for comparison operator == to return either the two strings are of same length or not.


Shift Numbers

Given a string, write a program to move all the numbers in it to its end.Input


The input will contain a string A.Output


The output should contain a string after moving all the numbers in it to its end.Explanation


For example, if the given string A is "1good23morning456," the output should be "goodmorning123456," as it contains numbers at the end.




Remove Words

Given a string, write a program to remove all the words with K length.Input


The first line of the input will contain a string A.

The second line of the input will contain an integer K.Output


The output should contain a string after removing all the words whose length is equal to K.Explanation


For example, string A is "Tea is good for you", k is 3 then output should be "is good."

Here words "Tea", "for", "you" length is equal to 3, so these words are removed from string.


Prefix Suffix

Write a program to check the overlapping of one string's suffix with the prefix of another string.Input


The first line of the input will contain a string A.

The second line of the input will contain a string B.Output


The output should contain overlapping word if present else print "No overlapping".Explanation


For example, if the given two strings, A and B, are "ramisgood" "goodforall"

The output should be "good" as good overlaps as a suffix of the first string and prefix of next.


Sandglass Star

Given an integer N, write a program to print the sandglass star pattern, similar to the pattern shown below.

* * * * * 
 * * * * 
  * * * 
   * * 
    * 
   * * 
  * * * 
 * * * * 
* * * * * 

Input


The input will be a single line containing a positive integer (N).Output


The output should contain the asterisk(*) characters in the sandglass star pattern.

Note: There is a space after each asterisk(*) character.Explanation


For example, if the given number is 5, the pattern should contain 9 rows and 9 columns as shown below.

* * * * * 
 * * * * 
  * * * 
   * * 
    * 
   * * 
  * * * 
 * * * * 
* * * * * 

AD


ASSIGNMENT - 2


DESCRIPTION


HINTS & SOLUTION


SUBMISSIONS


DISCUSS


Hollow Diamond

Given the number of rows N, write a program to print the hallow diamond pattern similar to the pattern shown below.

    A
   B B
  C   C
 D     D
E       E
 D     D
  C   C
   B B
    A

The input will be a single line containing a positive integer (N).Output


The output should be (2*N - 1) rows and (2*N - 1) columns containing the alphabet characters in the hollow diamond pattern.Explanation


For example, if the given number is 5, the pattern should contain 9 rows and 9 columns as shown below.

    A
   B B
  C   C
 D     D
E       E
 D     D
  C   C
   B B
    A

Sum of Non-Primes

Write a program to print the sum of non-primes in the given N numbers. The numbers which are not primes are considered as non-primes.Input


The first line of input will contain a positive integer (N).

The following N lines will contain an integer in each line.Output


The output should be the sum of non-primes in the given numbers.Explanation


For example, if the given number is 5, then read the inputs in the next 5 lines and print the sum of non-primes in the given five numbers. If the given input integers in the next five lines are 8, 11, 96, 49, and 25 the output should be 8 + 96 + 49 + 25 is 178.


LATEST TUTORIALS
APPROVED BY CLIENTS