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

Sometimes ,we want some part
of our code to be executed more than
once. We can repeat the code in our
program. For example, we need to
display our name for a hundred or
more times it is not practical to write
the same code. Which concept will
be used? Explain it with the help of
suitable examples.
WAP to calculate tax given the following condition: If income is less than 150,000, then no tax If income in the range of 150,001-300,000, then charge 10% tax If income is in the range of 300,001-500,000, then charge tax of 20% If income is above 500,001, then charge tax of 30%
Write a program to 4 X 4 matrix. Input the elements in the matrix and rotate the elements by one position of each row. A sample input and output is shown below:
I/P
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16

O/P:
2 3 4 1
6 7 8 5
10 11 12 9
14 15 16 13
What is meant by memory leak and dangling pointer? Explain the concept with the help of example.
Enter two strings and check whether one string is the reverse of other or not. For example, consider the strings “vikas” and “sakiv”, you can notice that one string is the reverse of other.
Each part of this problem addresses an aspect of computer organization.
a. List the components that are part of the CPU.
b. List the components that are part of the system bus.
c. Reorder the list of data storage elements below according to computer system
memory hierarchy, from closest to the CPU to farthest from the CPU.
hard disk, level 1 cache, DVD ROM, level 2 cache, registers, level 3 cache, and
main memory
Assemble the following assembly language instructions into machine code, and show
the machine code in hexadecimal representation.
a. MOVS R5,#13
b. MOV R10,R6
c. ADDS R3,R5,R7
d. ADDS R4,R4,#8
For the two IEEE-754 single-precision floating-point numbers P = 0xC1300000 and
Q = 0x3D600000, perform the following operations in binary floating point, and give
the IEEE-754 single-precision floating-point format results in both binary and
hexadecimal representations. (Do not convert P and Q to decimal, perform the
operations in decimal, and convert the results to IEEE-754 single precision.)
a. P x Q
b. P + Q
Determine the decimal value represented by IEEE-754 single-precision floating-point
format 0x40CC0000.
Compute and display the sum of a=4557 and b=45856
LATEST TUTORIALS
APPROVED BY CLIENTS