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

Q2.1: Mention and explain each field of IPv6 header in detail, by taking suitable examples. (5 marks)


Q2.2: Find the first address, last address and the number of addresses of a network whose one


of the IP addresses is 50.28.22.75 / 28. (5 marks)



Explain the different methods for control access control? (5 marks )

Explain various error detection method? (5 marks question)

An organization is granted a block of addresses with the beginning address 150.25.0.0/24. The organization needs to have 3 subblocks of addresses to use in its three subnets: one subblock of 11 addresses, one subblock of 40 addresses, and one subblock of 125 addresses. Design the network and plot it completely with respective subnets, IP range, Network IDs


Write a program that works with fractions. Your program should be able to add, 

subtract, multiply, and divide two fractions. Write a separate function for addition, 

subtraction, multiplication and division. Specifically, your program must request 

two fractions from the user, getting the numerator and denominator separately for 

each fraction, and the operation to perform (add, subtract, multiply, or divide). 

Your program will then compute the resulting fraction, keeping the numerator and 

denominator separate, and output the result. 

Note:

Make the structure for fractions. Then declare variable of fractions and use 

them for addition and multiplication etc....


6.      Write a Java program that will print the following series until it reaches 100.

 

1 1 2 3 5 8 13 …………………………

 

7.      Write a java program to find the sum of the series up to the nth term where n is input by the user.

1+(1+n)+(1+n+n)+(1+n+n+n)……………….nth Term

Example: input n = 6

Output: 1+7+13+19+25+31 = 96




 

 

4.      Write a program (without using an array) that accepts three numbers from the user and prints "increasing" if the numbers are in increasing order, "decreasing" if the numbers are in decreasing order, and "Neither increasing or decreasing order" otherwise.

 

Example: Input first number: 1524

Input second number: 2345

Input third number: 3321

 

Expected Output :

 

Increasing order

 

5.      Write a java program that inputs an integer and outputs if the number is a Palindrome.

 






2. Write a program in Java to display a diamond pattern of asterisks.

Expected Output :


*

***

*****

*******

*********

***********

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

***********

*********

*******

*****

***

*



3. Write a Java program that reads a positive integer and counts the number of digits the number has.

e.g. Input is 14367, Output is 5.





1.      Write a program in Java to display a right-angled triangle pattern with numbers, as shown below.

Expected Output :

1                                                                               

12                                                                              

123                                                                             

1234                                                                            

12345                                                                           

123456                                                                          

1234567                                                                         

12345678                                                                        

123456789                                                                       

12345678910

 

   

 




1. Number of rows


Description

This is the number of rows of the multidimensional array.

2. Number of columns


Description

This is the number of columns of the multidimensional array.

3. Elements of the multidimensional array

Output

The first line will contain a message prompt to input the number of rows.

The second line will contain a message prompt to input the number of columns.

The succeeding lines will contain the elements of the input multidimensional array.

Finally, the last line will contain the position (row, col) of the first element of the consecutive increasing number.

Enter·number·of·rows:·3
Enter·number·of·columns:·4
1·1·2·3
5·8·2·1
3·2·0·5
Position:·0,·1
LATEST TUTORIALS
APPROVED BY CLIENTS