NPTEL Programming In Java Assignment 3 Answers 2022

NPTEL Programming In Java Assignment 3 Answers 2022 (Week 3)

NPTEL Programming In Java Assignment 3 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate as a Reference Purpose, It is Mandetory to Submit Your Weekly Assignment By Your Own Understand Level.


Are you looking for the Assignment Answers to NPTEL Programming In Java Assignment 3 Answers 2022? If Yes You are in Our Great Place to Getting Your Solution, This Post Should be help you with the Assignment answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL Programming In Java Week 3 Assignment Solution 2022”


NPTEL Programming In Java

From My Side : With the expansion of knowledge and Communication Technology, there’s a desire to develop massive and complicated package. Further, those package ought to be platform freelance, web enabled, straightforward to switch, secure, and robust. to satisfy this demand object-oriented paradigm has been developed and supported this paradigm the Java artificial language emerges because the best programming atmosphere. Now, Java artificial language is being employed for mobile programming, web programming, and plenty of alternative applications compatible to distributed systems. This course aims to hide the essential topics of Java programming in order that the participants will improve their skills to address the present demand of IT industries and solve several issues in their own filed of studies.

With the growth of Information and Communication Technology, there is a need to develop large and complex software. Further, those software should be platform independent, Internet enabled, easy to modify, secure, and robust. To meet this requirement object-oriented paradigm has been developed and based on this paradigm the Java programming language emerges as the best programming environment. Now, Java programming language is being used for mobile programming, Internet programming, and many other applications compatible to distributed systems. This course aims to cover the essential topics of Java programming so that the participants can improve their skills to cope with the current demand of IT industries and solve many problems in their own filed of studies.

INTENDED AUDIENCE :  The undergraduate students from the engineering disciplines namely CSE, IT, EE, ECE, etc. might be interested for this course.
PREREQUISITES :  This course requires that the students are familiar with programming language such as C/C++ and data structures, algorithms.
INDUSTRY SUPPORT :   All IT companies.


This course can have Associate in Nursing unproctored programming communication conjointly excluding the Proctored communication, please check announcement section for date and time. The programming communication can have a weightage of twenty fifth towards the ultimate score.

Final score = Assignment score + Unproctored programming exam score + Proctored Exam score
  • Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
  • ( All assignments in a particular week will be counted towards final scoring – quizzes and programming assignments). 
  • Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam – out of 100
  • Proctored Exam score =50% of the proctored certification exam score out of 100
If any one of the 3 criteria is not met, you will not be eligible for the certificate even if the Final score >= 40/100. 


BELOW YOU CAN GET YOUR NPTEL Programming In Java Assignment 3 Answers 2022? :


NPTEL Programming In Java Assignment 3 Answers 2022

Q1.This program is related to the generation of Fibonacci numbers.

For example: zero,1, 1,2, 3,5, 8, 13,… may be a sequence wherever thirteen is that the eighth Fibonacci number.

A partial code is given and you have got to finish the code as per the instruction given below.

if (n==1)
return 0;
else if(n==2)
return 1;
return fib(n – 1) + fib(n – 2);

Q2. Define a class Point with two fields x and y each of type double. Also, define a method distance(Point p1, Point p2) to calculate the distance between points p1 and p2 and return the value in double.

Complete the code segment given below. Use Math.sqrt( ) to calculate the square root.

class Point{
double x;
double y;

public static void distance(Point p1,Point p2){
double d;
d=Math.sqrt((p2.x-p1.x)*(p2.x-p1.x) + (p2.y-p1.y)*(p2.y-p1.y));

Q3. A class Shape is defined with two overloading constructors in it. Another class Test1 is partially defined which inherits the class Shape. The class Test1 should include two overloading constructors as appropriate for some object instantiation shown in main() method. You should define the constructors using the super class constructors. Also, override the method calculate( ) in Test1 to calculate the volume of a Shape.

double height;
Test1(double length,double h) {


Test1(double length,double breadth,double h) {


double calculate() {
return length*breadth*height;

Q4. This program to exercise the call of static and non-static methods. A partial code is given defining two methods, namely sum( ) and multiply ( ). You have to call these methods to find the sum and product of two numbers. Complete the code segment as instructed.  


QuestionScope st = new QuestionScope();
int result1=st.sum(n1,n2);
int result2=QuestionScope.multiply(n1,n2);


Q5. Complete the code segment to swap two numbers using call by object reference.

static void swap(Question obj) {

int temp;





This is Currently Solving and It will notify Our Telegram Channel and also here When it will be done.

Related Posts

3 thoughts on “NPTEL Programming In Java Assignment 3 Answers 2022 (Week 3)

  1. I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Outstanding work!

  2. I’m curious to find out what blog platform you happen to be working with? I’m having some small security issues with my latest blog and I would like to find something more safeguarded. Do you have any suggestions?

Leave a Reply

Your email address will not be published.