Programming in Java week 12 all 5 programming assignment answer with code link | Nptel | Swayam

Опубликовано: 14 Март 2026
на канале: Simple Edu Talk
144
2

Hi Everyone,
Welcome to "Simple Edu Talk" Channel.
Here I will provide for you NPTEL THE JOY OF COMPUTING USING PYTHON, PROGRAMMING IN JAVA AND PROBLEM SOLVING THROUGH PROGRAMMING IN C All Assignment Quiz Answers.
So please subscribe this channel and press the bell icon to get new video Notification first and then you can watch new assignment answers video.

Follow Us:-

Telegram Channel Link..
https://t.me/simpleedutalk

Facebook:-
  / simpleedutalk  

Twitter:-
  / simpleedutalk1  

Website Link : https://nptelcodes.blogspot.com/

All Codes Link: https://nptelcodes.blogspot.com/2022/...

TOPIC




Week-12: Program-01


Complete the code to develop an extended version of the ADVANCED CALCULATOR with added special functions that emulates all the functions of the GUI Calculator as shown in the image.

Note the following points carefully:
1. Use only doubleto store all numeric values.
2. Each button on the calculator should be operated by typing the characters from 'a' to 't'.
3. You may use the already defined function gui_map(char).
4. Use predefined methods from java.lang.Math class wherever applicable.
5. Without '=' binary operations won't give output as shown in Input_3 and Output_3 example below.
5. The calculator should be able to perform required operations on one or two operands as shown in the below example:

Input_1:
okhid

Output_1:
100.0

Input_2:
ia

Output_2:

2.0



Week-12: Program-02

A partial code fragment is given. The URL class object is created in try block.You should write appropriate method( ) to print the protocol name and host name from the given url string.
For example:


https://www.xyz.com:1080/index.htm



protocol://host:port/filename



Week-12:Program-03

Write a program to create a record by taking inputs using Scanner class as first name as string ,last name as string ,roll number as integer ,subject1 mark as float,subject2 mark as float. Your program should print in the format
"name rollnumber avgmark".

For example:

input:

ram

das

123

25.5

24.5

output:

ramdas 123 25.0


Week-12: Program-04

A program code is given to call the parent class static method and instance method in derive class without creating object of parent class. You should write the appropriate code so that the program print the contents of static method() and instance method () of parent class.






Week-12: Program-05

Write a recursive function to print the sum of first n odd integer numbers. The recursive function should have the prototype
" int sum_odd_n(int n) ".

For example :

input : 5
output: 25

input : 6
output : 36

#SimpleEduTalk #NPtelProgrammingInJavaWeek12programming#NPTELjavaweek12programminganswers #nptel #swayam

Thank you 🌹🌹



TOPIC

nptel online courses
nptel courses
nptelswayam
swayamnptel
nptel
nptel courses list
nptel gate
nptel python
nptel online
python for data science nptel
python
pycharm
python online
matplotlib
numpy
opencv
anaconda python
django
py
python programming
python list
tkinter
learn python
python ide
pandas python
guido van rossum
python language
flask python
python coding
django python
tkinter python
google colab python
python developer
hackerrank python
python javatpoint
python iter
problem solving through programming in c
problem solving using c
programming for problem solving using c
nptel problem solving through c
programming in java
java script
online java compiler
java compiler
java tutorial
java development kit

Thank you 🌹🌹