• Home
  • Programs
  • _C Programs
  • _C++ Programs
  • _Java Programs
  • _Advanced Java Programs
  • About
  • Contact Us
  • Privacy Policy
  • Home
  • Programs
  • _C Programs
  • _C++ Programs
  • _Java Programs
  • _Advanced Java
  • About
  • Contact Us
  • Privacy Policy
SJNProgramming

8) Write a program using user-defined functions that will determine the length, slope and the y-intercept of a line where end points are given.

BySJN Programming -March 06, 2021

source file name: LineSlope.C   #include<math.h> void length(int x1, int y1, int x2, int y2) { int len; len=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); printf(" \n Length of Line=%d ",len); } int  slope(int x1, int y1, int x2, int y2) { int m; m=(y2-y1)/(x2-x1); printf("\n Slope=%d",m); return m; …

Read more

9)Write a JDBC Program that adds many records at a time using Prepared Statement.

BySJN Programming -March 05, 2021

source file name :  PrepareLoop.java import java.sql.*; class PrepareLoop { public static void main(String as[]) { System.out.println("JDBC Program"); String names[]={"ram","kavita","soham","savita","sana"}; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDr…

Read more

7) Write a program that finds Maximum from 2 numbers using user defined function.

BySJN Programming -March 05, 2021

source file name: MaxFun.C   int max(int m, int n) // declaration and definition { int res; if(m>n) res=m; else res=n; return res; } void main() { int a,b; int result; clrscr(); printf("enter 2  numbers: "); scanf("%d%d",&a,&b); result= max(a,b);   // calling function printf(" max…

Read more

4) Write a C++ program that calculates sum of two class data members using Pointers to Members concept.

BySJN Programming -March 03, 2021

#include<iostream.h> #include<conio.h> class Ptr { int a,b; public: void set(int m, int n) { a=m; b=n; } friend int sum(Ptr p); }; int sum(Ptr ob) { int Ptr::* pa=&Ptr::a; int Ptr::* pb=&Ptr::b; Ptr *p=&ob; int s=ob.*pa+p->*pb; return s; } void main() { Ptr n; clrscr(); cout<<"\n…

Read more

12) Write a program that displays Upper case and Lower case letters using While Loop.

BySJN Programming -March 03, 2021

source file name: UpperLower.C   void main() { char ch; clrscr(); printf("\n Upper case letters\n "); ch=65; while(ch<=90) { printf(" %c ",ch); ch++; } printf("\n Lower case letters\n "); ch=97; while(ch<=122) { printf(" %c ",ch); ch++; } getch(); } output:

Read more

5) Write a Java program that having Three sateFlower methods to display different Flower names using Method Overloading.

BySJN Programming -March 02, 2021

source file name: FlowerDemo.java class FlowerDemo { public void sateFlower() { System.out.println("Rose is beautiful flower"); } public void sateFlower(String s) { System.out.println(s+" is beautiful flower"); } public void sateFlower(String s, int n) { for(int i=1;i<=n;i++) { System.out.print…

Read more

4) Write a Java program that to convert any given year into its Roman equivalents using Method overloading.

BySJN Programming -March 02, 2021

source file name: romandemo.java  import java.io.*; class Roman { final char[] ch={'M','D','C','L','X','V','I'}; void roman(int cnt,char ch) { for(int n=1;n<=cnt;n++) System.out.print(ch+" "); } } class romandemo extends Roman { void roman(int n) { …

Read more
Newer Posts Older Posts
Programs Debugging Facility Available
  • Home
  • Programs
  • About
  • Contact us

Programs

  • C Programs
  • C++ Programs
  • Java Programs
  • Advanced Java Programs

C Programs

  • Array Programs(C)
  • File handling program(C)
  • Pointer Programs
  • String Programs
  • Structure Programs
  • for loop programs
  • function programs
  • if-else programs
  • simple programs(C)
  • switch-case-default
  • while loop programs

C++ Programs

  • Simple Programs (C++)
  • OOP (C++)
  • Function Overloading (C++)
  • Constructors & Destructors (C++)
  • Operator Overloading Programs (C++)
  • Inline , Friend and Static functions Programs
  • Inheritance Programs (C++)

Java Programs

  • Applets
  • Array
  • Command Line Argument
  • Constructors Programs
  • Event Programs
  • Exception Handling
  • File and IO Programs
  • Inheritance Programs
  • Interfaces Programs
  • Method Overloading Program
  • Method over riding programs
  • Miscellaneous programs
  • Simple Programs
  • Windows Programs

Advanced Java Programs

  • JDBC Programs
  • JSP
  • Networking
  • Servlets
  • Swing

Archive

  • September 20232
  • July 20231
  • April 20232
  • March 20231
  • February 20238
  • January 20231
  • November 20224
  • May 20223
  • April 20222
  • March 20226
  • January 20223
  • December 20211
  • August 20217
  • July 20212
  • June 202132
  • May 202139
  • April 202125
  • March 202142
  • February 202143
  • January 202160
  • December 202080
Show more Show less

Popular

2) Write a JSP program that checks given number is Prime number or not. The number is  accept from html form.

2) Write a JSP program that checks given number is Prime number or not. The number is accept from html form.

11) The  marks obtained by a student in 5 different subjects are input  through the keyboard. Write a program to finds grade obtained  by a Student.

11) The marks obtained by a student in 5 different subjects are input through the keyboard. Write a program to finds grade obtained by a Student.

4) Write a JSP program that accepts Employee name and Basic salary , JSP calculates Gross Salary of Employee and Error page found.

4) Write a JSP program that accepts Employee name and Basic salary , JSP calculates Gross Salary of Employee and Error page found.

Recents

[getWidget results='3' label='recent' type='list']

Comments

[getWidget results='3' label='comments' type='list']

About Us

Prof. Suresh Nalawade is Lecturer & HOD of the Department of Computer Science, D.B.J College, Chiplun, Dist. Ratnagiri (MH)

Email: sjnalawade12@gmail.com

Search

Feedback Form

Menu Widget

  • Home
  • About
  • Privacy
  • Contact Us

SJN Programming

Design by Blogger Templates

Contact Form