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

Based on the English alphabet, it includes just 128 basic characters: numbers 0 to 9, lowercase letters a to z, uppercase letters A to Z, basic punctuation symbols, the space character, and a few other non-printing characters.Here are all the printable ASCII characters—including a space—enclosed in single quotes.


‘ !”#$%&\’( )*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[ \ \ ]^_’abcdefghijklmnopqrstuvwxyz{ | }~’


Using the string above, write a program that prompts a user to enter a text. Compare this text to the ASCII string and print out the following information.

 

(Here is a sample running of the program:)

 

Enter a text to analyze: Let’s go to the cafe’ on Sullivan St.

The total number of characters (including spaces) in the text : 36

The total number of ASCII characters in the text : 34

The total number of non-ASCII characters in the text : 2


Write a python statement for the following. Assigns the product of 10 and 15 to the variable product. Then Subtracts the variable down_payment from the variable total and assigns the result to the variable due. And Multiplies the variable subtotal by 0.15 and assigns the result to the variable total. Then Prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.and Assume the variable sales references a float value 56.3355. Round the value to two decimal points.


Write a program in C++ which stores and displays the details of 3 students in arrays. Your program should:  Take the following inputs from the user: Name, department, year of enrolment, discipline, age, gender, gpa. Choose appropriate data types for the arrays to store each type of input information.  Once the details of the student have been entered in the different arrays, display a summary of the details for the student.  In the next step, calculate the average gpa of the three students and display it.  In the final step, swap the discipline and gpa of Student1 and Student2.  Display the final updated summary details for each student.


First Perfect Square

Given two integers (M and N), write a program to print the first perfect square in a given range.Input


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

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


The output should be a single line containing the first perfect square in a given range.Explanation


For example, if the given numbers are M is 4 and N is 16, the perfect squares from 4 to 16 are 4(2 * 2), 9(3 * 3), and 16(4 * 4), as the first perfect square is 4. So the output should be 4.


Sample Input 1

4

16


Sample Output 1

4


Sample Input 2

5

8


Sample Output 2

No Perfect Square




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.


Ordered Matrix

Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input


The first line of input will contain two space-separated integers, denoting the M and N.

The next M following lines will contain N space-separated integers, denoting the elements of each list.Output


The output should be M lines containing the ordered matrix.

Note: There is a space at the end of each line.Explanation


For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.

1 20 3
30 10 2
5 11 15


By ordering all the elements of the matrix in increasing order, the ordered matrix should be

1 2 3
5 10 11
15 20 30

Sample Input 1

3 3

1 20 3

30 10 2

5 11 15


Sample Output 1

1 2 3

5 10 11

15 20 30


Sample Input 2

2 5

-50 20 3 25 -20

88 17 38 72 -10


Sample Output 2

-50 -20 -10 3 17

20 25 38 72 88





String Rotation

Given two strings(S1 and S2), write a program to determine if a string S2 is a rotation of another string S1.


Input

The first line of the input will be a string S1.

The second line of the input will be a string S2.Output


If string S2 is a rotation of another string S1, print number of right rotations made by string S1 to match the string S2. Otherwise, print "No Match".

Where right rotation means all elements are moving towards the right side by one place where the last element will be placed in the first place example, one right rotation of "python" is "npytho"


For example, if the given strings S1 and S2 are "python" and "onpyth",

The first right rotation of s1 is "npytho" which is not equal to string S2"onpyth"

The second right rotation of s2 is "onpyth" which is equal to string S2 "onpyth".

So output 2


Sample Input 1

python

onpyth


Sample Output 1

2


Sample Input 2

Python

Python


Sample Output 2



In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary.


b) Write a C/C++ system program to search for a file in the Windows file system and display the file information on the screen. Compile and run the program and copy the source code into your answer booklet. 


 As an engineer, explain why it is important for you to study economics State the four key steps in planning an economic study.


LATEST TUTORIALS
APPROVED BY CLIENTS