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

evaluate the expression in value :


12 % x


Write a program to compare two strings. One of the strings should be already stored in your program as password. Now take user input for a guess and compare this input with the pre stored password. If both of them match then print “Valid password” otherwise print “Sorry! Wrong password”.



Write a program to take an input string, store this string into another string in reverse order. Print the original and reversed string both.

 



Write a Program in C++ which completes following requirements:

a. Create a class, having a static function printing some information 

and invoke that method using scope resolution operator.

b. Try to access non-static data members from static method and 

write in comments what happens.

c. Declare and initialize a static variable as counter in a function

(increment it in every call) and call it multiple times printing the 

change in value

d. Write about your observations while making this assignment in a 

word file about static variables and static methods.


Given a square matrix, print the sum all diagonal elements of the matrix.

Input

The first line of input will be an integer N, denoting the no. of rows in the matrix. The following N lines will contain space-separated integers denoting the elements of each row of the matrix.

Output

The output should be a single integer denoting the sum of all the diagonal elements.

Explanation

For example, if the given N is 3, and the given matrix is

1 2 3

4 5 6

7 8 9

The diagonal and anti-diagonal elements of the above matrix are 1, 3, 5, 7, 9. So the output should be 25


write a complete c++ program that accepts an integer n . the program will then reads in n integer numbers. count and display the number of odd integers


write a complete c++ program to input an integer n and compute its zfactorial. your program should check that the range of n is 0<n<10 before the computation . if the value of n is not in the range , display an appropriate error message and input the value of n again until the user enter the valid value of n.


write c++ program that reads a non-negative integer value, computes the factorial and print the result


write a complete c++ program that prompts the user to enter an integer, checks whether the integer is an odd number and divisible by 7, and prints an appropriate message.


Write a function that tests to see if a string constants a valid Rhode Island drivers license number. A Rhode Island drivers license meets one of the two criteria

  • contains 7 Numeric
  • 1 Alpha and 6 Numeric characters. 
LATEST TUTORIALS
APPROVED BY CLIENTS