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 program that accepts a series of genders from a class of 10 and counts the number of female and male in the class.
Initialize total to 0
Initialize customer to ‘Y’
While
there is still a customer
Input quantity
Input price
Accumulate total
Continue for another customer?
Input customer
Display total paid by all customers
For each line of code given below, what would be displayed on the screen:
1) cout << 1 / 2 << " " << 1 / (double) 2 << ' ' << 1 / 2 * 1.0 << ' ' << 1.0 * 1 / 2;
2) cout << (char) 65.5;
3) cout << (char) 65 + 1;
4) cout << (char) 65 + (char) 1;
5) cout << 'A' + 'B';
6) cout << (char) (65 + 1);
a program which takes as input the length of the three sides of a right angled triangle. The program should then display the cosine, sine, and tangent of the angle.
which of the following is a best way of declaring x as a two-dimension array in java?
a.int[2] x = new int[];
b.int[]x = new int[2];
c.int[10][20] x = new int[20][10];
d.int[][] x = new int[10][20];
The following sequence of operations are performed on an empty Queue Q: ADD(1,Q), ADD(2,Q), REMOVE(Q), ADD(1,Q), ADD(2,Q), REMOVE(Q), REMOVE(Q), REMOVE(Q), ADD(2,Q), REMOVE(Q). The sequence of the removed values are?
a.2,1,2,2,1
b.2,1,2,2,2
c.2,2,1,1,2
d.1,2,1,2,2
Which of the following is not a primitive data type in Java?
a.String
b.Double
c.Int
d.Boolean
What is the output after executing the following code fragment: int [] x = {1,2,3,4,5}; System.out.println(x[0])
a.Array Index Out Of Bounds Exception
b.2
c.6
d.1
Which of the following data structures uses FIFO method?
a.Stack
b.Binary Search Tree
c.Queue
d.Hash Table
We want to calculate the total marks of each student of a class in Physics,Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.
LATEST TUTORIALS
APPROVED BY CLIENTS