JAVA Programming for School

JAVA Programming for School

Share

There are certain students who have problems in understanding boolean data types, accepting strings, patterns, Armstrong no, dry run of every program, VDT(Variable Description table), comments, etc. WE WILL TRY OUR BEST!

20/08/2017

We are now helping with basic programming in C. Contact us for any basic problem.

Photos 27/03/2015

A program that is tougher than the average ICSE program.
WAP to accept an array of 7 integers from the user and display the elements in ascending/descending order without using any standard sorting technique.
Hint: You can use another array
====================================================

Source code:

/*
* Program to accept an array of integers and sort it using without using any general sorting technique
*
*/
import java.util.*;
class Sort2
{
static Scanner sc= new Scanner(System.in);
static int[] ar= new int[7];
void input()
{
for (int i=0;i

Photos 02/12/2014

WAP in java to accept 10 number in a single-dimensional array.
Print all the Magic numbers under a specific heading.

A magic number is a number in which the eventual sum of the digits is equal to 1
For example: 28=> 2+8= 10
10=> 1+0= 1
_________________________________________________
import java.util.*;
public class Magic
{
int sum(int x)
{
int ctr=0;
String s=Integer.toString(x);
for(int i=0; i9;x=sum(x)); //implementation of omitting expression
boolean flag=(x==1)?true:false;
return flag;
}
void main()
{
Scanner sc = new Scanner(System.in);
int[] arr=new int[10];
int[] mag=new int[10];
for(int i=0; i

Want your business to be the top-listed Computer & Electronics Service in KOLKATA?
Click here to claim your Sponsored Listing.

Website

Address


Kolkata