Question about Compilers & Programming Tools

Open Question

Creating a program using Java PL that mimics a calculator

Posted by on

1 Suggested Answer

Jubert
  • 249 Answers

SOURCE: I am java beginner and I want a help in writing a

the best thing to do here is to separate the steps for calculating the variance into different functions. To compute the variance the first thing to do is to compute the mean or the average of the numbers in the array. so your first function will loop through each of the numbers and divide it by the length of your array. the output is the returned. The next thing to do is create another function for the variance. loop through each of the numbers again and subtract to each number the mean. square the value then add to the previous. so that means you have another variable that starts from zero and just adds the answer. after that divide it by the length of the array again and what you are going to get is the value for the variance.

Posted on May 26, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

6 Answers

Which programming language use to build online ecommerce website?


In my point of view, PHP Web Development will give you a chance to make the best use of the platform to develop various applications which can be used for your ecommerce website.
View here http://tinyurl.com/cxxbguo

Dec 05, 2012 | The PHP Group Compilers & Programming...

2 Answers

What is strings in java?


Handling character strings in Java is supported through two final
classes: Java String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic character strings. All string literals in Java programs, are implemented as instances of String class. Strings in Java are 16-bit Unicode.

Nov 21, 2012 | Sun Java Programming Language (cdj-275)

1 Answer

Wanted to do a good project on java.suggest d


if u have hardware knowledge,then u can interface a 4x4 matrix keypad with printer port and make a calculator!!
i have done this project, if u need hardware assistance tell me

Jul 14, 2010 | Sun Java Programming Language (cdj-275)

1 Answer

I just installed Java. The installation was


hi the web page has nothing to with it. to see if it works create a simple java program save it in bin folder then compile itfrom command prompt.

Oct 23, 2009 | Compilers & Programming Tools

1 Answer

I am java beginner and I want a help in writing a java program to calculate the variance for an array of numbers


the best thing to do here is to separate the steps for calculating the variance into different functions. To compute the variance the first thing to do is to compute the mean or the average of the numbers in the array. so your first function will loop through each of the numbers and divide it by the length of your array. the output is the returned. The next thing to do is create another function for the variance. loop through each of the numbers again and subtract to each number the mean. square the value then add to the previous. so that means you have another variable that starts from zero and just adds the answer. after that divide it by the length of the array again and what you are going to get is the value for the variance.

May 13, 2009 | Compilers & Programming Tools

1 Answer

I have a hand written documents which is scanned and stored in a pdf format. i want to write coding to read this pdf file and convert the scanned text into normal text. is it possible using java. please...


No and here's why... Java is a programming language; its purpose is to be used to create programs that do useful things, but it is not equipped to do the complex analyses required to convert images to text. What you need is an OCR "image to text" conversion software application. Java is not such an application; it is a programming language meant to be used by programmers in a "platform independent context" (usually the World Wide Web). I suggest searching Google for what you need using these keyword strings: OCR image-to-text software. OCR stands for Optical Character Recognition.

Note that performing OCR on handwritten text is particularly difficult because it is so non-uniform (irregular). Here is a link that may be helpful in your quest for what is on its face at least by the way you asked, a very difficult process: http://www.softpedia.com/get/Office-tools/Other-Office-Tools/OCR-Image-to-Text-Conversion-Tool.shtml.

As one of my best programming professors (who taught me Java) used to say, "Yes, anything is possible in creating a computer program, but only if you have enough what? Skills, money and time to get the job done! Don't forget: time is money, so you know, don't bite off more than you can chew."

Apr 11, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

Code for method parseInt() in java


parseInt(java.lang.String, int)

This code takes two arguments, a string constructor from the Java language and an integer. Its purpose is to parse (meaning de-construct or disassemble into component parts) one data type into another.

Here is an example of a Java program to specify and print out the dimensions of a rectangle, taken from the page http://www.roseindia.net/java/beginners/entervaluesfromkeyboard.shtml:

class Rectangle{
int length, breadth;
void show(int x, int y){
length = x;
breadth = y;
}
int calculate(){
return(length * breadth);
}
}
public class EnterValuesFromKeyboard{
public static void main(String[] args) {
Rectangle rectangle = new Rectangle();
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
rectangle.show(a, b);
System.out.println(" you have entered these values : " + a + " and " + b);
int area = rectangle.calculate();
System.out.println(" area of a rectange is : " + area);
}
}

Apr 09, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

How to creat a report with java? i need Java Enterprises latest tool. how download? how to creat a exe file from java?


If you would like to create a report with java there are a couple of things that you could focus on using. You could either go for Crystal Reports, or even Jasper Reports or any other reporting kit for java. To download the Java Enterprises latest tool.. I need clarification with this one. Do you mean J2EE SDKs? if you do just go to the sun microsystems website and download it from there. To create an exe file... jars are normally the ones you get when you compile java codes. The best thing to do here is to create batch files to run your compiled java applications.

Mar 24, 2009 | Sun Compilers & Programming Tools

1 Answer

Problem in java


This is how to create notepad application in java:
http://www.dreamincode.net/forums/showtopic66176.htm

Also, you can take a look to this one and download free source codes:
http://forums.targetlife.com/showthread.php?t=259

Enjoy it! Good luck

Mar 04, 2009 | Sun Java Programming Language (cdj-275)

9 Answers

Java programming


I ll give you some reference book names for core java they are the best,

1)Head First Java by Kathy Sierra & Bert Bates

2)SCJP 5.0 by Kathy Sierra & Bert Bates

the first one is the best for the beginners read it before you go for any other

good luck

Aug 14, 2008 | Sun Java Programming Language (cdj-275)

Not finding what you are looking for?
Compilers & Programming Tools Logo

Related Topics:

118 people viewed this question

Ask a Question

Usually answered in minutes!

Top Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18297 Answers

Florin

Level 3 Expert

733 Answers

Are you a Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...