Logic Building with JAVA

Date : 27 / 8 /2014


Logic Building with JAVA

Activity – I


Prepared by

Prof. Kapil Shukla




AIM of Activity
  • Team Building
  • Concreting Logic
  • Clear Presentation of Idea
  • Converting Logic into CODE
  • Better Understanding of Problem
  • Thinking about Alternative Solution

[1]
Calculator Application

Make a Simple Calculator using Command Line Argument in Java.

It will take input from Command Line in series of OPERANDOPERATOROPERAND.

Example:
   INPUT : 15 + 29 – 30
   OUTPUT : 14

[2]
Occurrences of Characters

Make a Simple program which count the occurrences of Each Character in String .

It will take one STRING as an INPUT.

Example:
   INPUT : kapilshukla
   OUTPUT :        k – 2
     a – 2
     p – 1 ….
[3]

Concatenate Strings and SORT 

Make a Simple program which concatenate two String and then Perform SORT operation on Final String.

It will take TWO STRINGS as an INPUT.

Example:
   INPUT : gardi mca
   OUTPUT : aacdgimr (IF possible – acdgimr)

No comments:

Post a Comment