NPTEL Programming In Java Assignment 1 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 1 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 1 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.
CRITERIA TO GET A CERTIFICATE
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.
- 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
UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50.
CHECK HERE OTHERS NPTEL ASSIGNMENTS ANSWERS
BELOW YOU CAN GET YOUR NPTEL Programming In Java Assignment 1 Answers 2022? :
NPTEL Programming In Java Assignment 1 Answers 2022
Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius.
You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.
Code:-
System.out.println(2*Math.PI*radius);
System.out.print(radius*Math.PI*radius);
Q2. Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.
Code:-
if (x>y && x>z)
System.out.print(x);
else if (y>x && y>z)
System.out.print(y);
else
System.out.println(z);
Q3. Consider First n even numbers starting from zero(0).Complete the code segment to calculate sum of all the numbers divisible by 3 from 0 to n. Print the sum.
Code:-
int a=-2;
for(int i=0;i<n;i++)
{
a=a+2;
if(a%3==0)
sum+=a;
}
System.out.print(sum);
Q4. Complete the code segment to check whether the number is an Armstrong number or not.
Armstrong Number:
A positive number is called an Armstrong number if it is equal to the sum of cubes of its digits for example 153 = 13+53+33, 370, 371, 407, etc.
Code:-
int num=n;
while(num>0)
{
int r=num%10;
result+=r*r*r;
num/=10;
}
if (result==n)
System.out.print(1);
else
System.out.print(0);
Q5. Complete the code segment to help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.
Code:-
int sum=0,max=0;
for(int i1=0;i1<arr.length;i1++)
{
if(arr[i1]>max)
max=arr[i1];
sum+=arr[i1];
}
mark_avg=sum/arr.length;
System.out.println(max);
System.out.print(mark_avg);
Yhaa You have done it but next? if YOU Want to your Others Programming In JAVA Assignments Answers Then Follow US HERE and Join Telegram.