0% found this document useful (0 votes)
33 views3 pages

Noc20-Cs08 Week 01 Assignment 02

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

Noc20-Cs08 Week 01 Assignment 02

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

02/07/2020 Programming in Java - Course

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Programming in Java (course)

Announcements (announcements)

About the Course (https://swayam.gov.in/nd1_noc20_cs08/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Java Week 1:Q2


Course Due on 2020-02-13, 23:59 IST
outline
Complete the code segment to find the largest among three numbers x, y, and z. You
should use if-then-else construct in Java.
How does an
NPTEL online Sample Test Cases
course work? Input Output

Week 0 : Test Case 1 -4 -2 -3 -2

Week 1 : Test Case 2 5 5 5 5

Lecture 01 : Test Case 3 -5 0 5 5


Introduction
(unit?
unit=2&lesson=15) Test Case 4 2 3 4 4

Lecture 02 :
Java The due date for submitting this assignment has passed.
Programming As per our records you have not submitted this assignment.
Steps (unit? Sample solutions (Provided by instructor)
unit=2&lesson=16)
1 import java.util.Scanner;
2 public class Exercise1_2 {
Lecture 03 : 3 public static void main(String[] args) {
Java Tools and 4 Scanner s = new Scanner(System.in);
Resources 5 int x = s.nextInt();
6 int y = s.nextInt();
(unit? 7 int z = s.nextInt();
unit=2&lesson=17) 8 int result = 0;
9 if(x >= y && x >= z)
Lecture 04 : 10 {
11 result=x;
Demonstration- 12 }
I (unit? 13 else if(y >= z)
unit=2&lesson=18) 14 {
15 result=y;
16 }
Lecture 05 : 17 else
Java Applet 18 {

https://onlinecourses.nptel.ac.in/noc20_cs08/progassignment?name=102 1/3
02/07/2020 Programming in Java - Course

Programming 19 result=z;
(unit? 20 }
21 System.out.println(result);
unit=2&lesson=19) 22 }
23 }
Quiz :
Assignment 1
(assessment?
name=93)

Java Week
1:Q2
(/noc20_cs08/progassignment?
name=102)

Java Week
1:Q3
(/noc20_cs08/progassignment?
name=103)

Java Week
1:Q4
(/noc20_cs08/progassignment?
name=105)

Java Week
1:Q5
(/noc20_cs08/progassignment?
name=106)

Feedback For
Week 1 (unit?
unit=2&lesson=112)

Week 2 :

Week 3 :

Week 4 :

Week 5 :

Week 6 :

Week 7 :

Week 8 :

Week 9 :

Week 10 :

Week 11 :

Week 12 :

DOWNLOAD
VIDEOS

https://onlinecourses.nptel.ac.in/noc20_cs08/progassignment?name=102 2/3
02/07/2020 Programming in Java - Course

Assignment
Solution

Books

Live Interactive
Session

https://onlinecourses.nptel.ac.in/noc20_cs08/progassignment?name=102 3/3

You might also like