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

Java Cylinder Volume Calculation Assignment

The document outlines a Java programming course offered by NPTEL, focusing on a specific assignment to calculate the volume of a cylinder using a given formula. The assignment is due on August 7, 2025, and includes instructions for completing the code, along with sample solutions. It also provides details on test cases and feedback for submitted assignments.

Uploaded by

muthu
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)
12 views3 pages

Java Cylinder Volume Calculation Assignment

The document outlines a Java programming course offered by NPTEL, focusing on a specific assignment to calculate the volume of a cylinder using a given formula. The assignment is due on August 7, 2025, and includes instructions for completing the code, along with sample solutions. It also provides details on test cases and feedback for submitted assignments.

Uploaded by

muthu
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

22/10/2025, 19:06 Programming In Java - Course

([Link] ([Link]

muthupec77@[Link] 

NPTEL ([Link] » Programming In Java (course)

If already Week 01 : Programming Assignment 2


registered, click
Due on 2025-08-07, 23:59 IST
to check your
payment status Write a Java program to calculate the volume of a cylinder given its radius and
height.
Formula:
Course V = π ∗ r
2
∗ h
outline
You can use [Link] for the computation.
About NOTE:
NPTEL () The code you see is not complete.

How does an
Your task is to complete the code as per the question.
NPTEL Think of it like a programming puzzle.
online (This question can be solved in just one line of code)
course
work? ()

Week 0 : () Private Test cases used for


InputExpected Output Actual Output Status
evaluation
Week 1 : () 1 Volume is: Volume is:
Test Case 1 Passed
1 3.14 3.14
Lecture 01 :
Introduction
(unit?
The due date for submitting this assignment has passed.
unit=18&lesso
1 out of 1 tests passed.
n=19)
You scored 100.0/100.
Lecture 02 :
Java Assignment submitted on 2025-07-21, 14:23 IST
Programming Your last recorded submission was :
Steps (unit?
1 import [Link];
unit=18&lesso 2 ​
n=20) 3 public class W01_P2 {
4 public static void main(String[] args) {

[Link] 1/3
22/10/2025, 19:06 Programming In Java - Course

Lecture 03 :
5 Scanner in = new Scanner([Link]);
6 double radius = [Link]();
Java Tools and 7 double height = [Link]();
Resources 8 // Calculate the volume
9 double volume = [Link] * radius * radius * height;
(unit?
10 // Display the result
unit=18&lesso 11 [Link]("Volume is: %.2f", volume);
n=21) 12 [Link]();
13 }
Lecture 04 :
14 }
Demonstration Sample solutions (Provided by instructor)
-I (unit? 1 import [Link];
unit=18&lesso 2 ​
3 public class W01_P2 {
n=22) 4 public static void main(String[] args) {
5 Scanner in = new Scanner([Link]);
Lecture 05 : 6 double radius = [Link]();
Java Applet 7 double height = [Link]();
8 double volume = [Link] * radius * radius * height;
Programming 9 // Display the result
(unit? 10 [Link]("Volume is: %.2f", volume);
unit=18&lesso 11 [Link]();
12 }
n=23) 13 }
Week 01 :
Programming
Assignment 1
(/noc25_cs110
/progassignme
nt?name=568)

Week 01 :
Programming
Assignment 2
(/noc25_cs11
0/progassign
ment?
name=570)

Week 01 :
Programming
Assignment 3
(/noc25_cs110
/progassignme
nt?name=571)

Week 01 :
Programming
Assignment 4
(/noc25_cs110
/progassignme
nt?name=572)

Week 01 :
Programming
Assignment 5
(/noc25_cs110
/progassignme
nt?name=573)

Quiz: Week
1:Assignment
1

[Link] 2/3
22/10/2025, 19:06 Programming In Java - Course

(assessment?
name=567)

Week 01 :
Assignment
Solution (unit?
unit=18&lesso
n=430)

Feedback
Form (unit?
unit=18&lesso
n=24)

Week 2 : ()

Week 3 : ()

Week 4 : ()

Week 5 : ()

Week 6 : ()

Week 7 : ()

Week 8 : ()

Week 9 : ()

Week 10 : ()

Week 11 : ()

Week 12 : ()

DOWNLOAD
VIDEOS ()

Books ()

Text
Transcripts
()

[Link] 3/3

You might also like