Comment

Angela Royal
Need Help with a school project,
August 25, 2010 at 8:26 PM

If you could, I am so lost on a java assignment for school that I have to do, can you offer assistance on creating the code for the below assignment:

A teacher at a local elementary school has asked your company to create a program to perform a computation using a number input by the user. The user may choose to square, cube, double, or halve the number. The result should be output to the screen. After the result is displayed, the program should prompt the user to enter another number and select another computation or exit the program. Remember: The square of a number is the number multiplied by itself (2 squared is 2 * 2). The cube of a number is the number multiplied by itself 3 times (3 cubed is 3 * 3 * 3). Double the number is the number multiplied by 2. Half the number is the number divided by 2. Your solution must include case logic and looping logic. Your solution must include 5 parts in addition to the coded solution
View All Comments | View Tutorial
Related Tutorial and Articles
JSF Tutorials & Examples

JSF Hello World
classes etc. Steps to create JSF Hello World Example: 1. Go to your project... JSF Hello World      ... to print hello world in JSF application using NetBeans IDE. NetBeans IDE provides

Struts 2 Tutorials

Struts 2 Hello World Application using Eclipse
Creating Hello World application in Struts 2 version 2.3.15.1 using Eclipse In this example we will learn how to make a Hello World Example in Struts 2... follow the step by step guide to develop your first Hello World example

Java Beginners

Hello World - Java Beginners
Hello World  Java Beginner - 1st day. Looked at the Hello World......){ System.out.println("Hello World!"); } } what am I doing wrong. Am I expecting... for more information.http://www.roseindia.net/java/learn-java-in-a-day

Android

Android Studio Hello World Tutorial
explains the complete process: How to create Hello World Project using...' project using android studio. This hello world android project is very useful... your first Hello World project in Android studio just follow the steps below

Struts-Tutorials

Struts 2 Hello World Application Example, Learn how to develop Hello World application in struts 2.
Struts 2 Hello World - Developing Hello World Application...; In this section we will develop Hello World application based on Struts 2 Framework. Our Struts 2 Hello World application is your first step towards

Struts 2 Tutorials

Struts 2 Hello World Annotation Example
successfully developed and tested the Hello World application using Java...Video tutorial of creating Struts 2 Hello World Annotation Example in Eclipse... of creating Struts 2 Hello World Annotation Example: Let's Starts

Spring Framework Questions

How a simple "Hello World" can be displayed using Spring 3.2 MVC?
How a simple "Hello World" can be displayed using Spring 3.2 MVC?  Hi, How a simple "Hello World" can be displayed using Spring 3.2 MVC? Thanks... World with Example. May this will help you. The Spring 3.2 is a open source

jQuery

jQuery Hello World
jQuery Hello World example     ... application called "Hello World jQuery". This application will simply display...'s start developing the Hello World application in jQuery. Setting up

Development process Questions

TIBCO Designer Tutorial - Hello World
you how to create a process definition that writes the words "Hello, World... output "Hello, World!" into the file. This task requires knowledge of the file... and text content of "Hello, World!" into the activity configuration. Then you're

Java Code Examples

Hello world pdf
hello world pdf      ...;Hello World" word in a pdf, rtf and html file irrespective of the fact whether it exists or not. To make a program over this, firstly we need to import

Echo3

Hello World in Echo3 framework
Hello World in Echo3 framework       Since "Hello World" example is everyone's... with the "Hello World" example in Echo3. We have illustrated the first

Core Java

Java hello world
Java hello world      ..., JavaBeans, Mobile Java. Genarally, Hello world program is the first step.../java/beginners/hello_world.shtml

GWT

Displaying Hello World using GWT
Hello World using GWT in java. By GWT we mean Google Web Toolkit,Google Web... Label label = new Label("Hello World"); Step11:-Right-click on the project... Displaying Hello World using GWT

Wicket

"Hello World" example in Wicket
"Hello World" example in Wicket       Hello World example is everybody's...;Hello World!" message. Full code of  HelloWorld.java

Java-Tutorials

Core Java Hello World Example
Create Java Hello World Program This tutorial explains you how to create a simple core Java "Hello World" application. The Hello World application... will create here a Hello World Java program then I will explain the terms what

Servlets

Servlet hello world example
Servlet  hello world example This tutorial will help you to understand... by making Servlet hello world program. We will just write one program which print hello world in Servlet. Let us explain this by a hello world example using Servlet

Hibernate-Tutorials

Hibernate 4.3 Hello World: Example
Developing Hibernate 4 Hello World Example In this section you will learn how to develop your first Hibernate 3.4 Hello World example. Now this version... to develop the Hibernate 4.3 Hello World Example program steps: Step 1

Programming Tutorials

Hello world
Hello world (First java program)   .... Hello world program is the first step of java programming  language... learned how to write and then test the Hello World! java program

Flex 4

Flex 4 Hello World
Flex 4 Hello World Developing Hello World Example in Flex 4 using Flash Builder 4 Before creating Hello World example, you need flash builder 4 installed.... For this example, change text to "Hello World in Flex 4", text font size

Tutorials

Iphone hello world example
hello world project. So till now we have created a view based application project with name Hello World and i have saved it on my desktop. Ok in the project we...Iphone hello world example In this tutorial an iphone based hello world

Java Beginners

Help in making school project
Help in making school project  Description: A doctor has recently opened a surgery and is getting concerned at the amount of time some of his patients are waiting before he gets time time see them. The doctor has asked you

Struts 2 Tutorials

Struts 2.1.8 Hello World Example
Struts 2.1.8 Hello World Example       In this section we will learn how to develop our first Hello World... to develop simple Hello World example in Struts 2.8.1. You will also learn how

Tutorials

Hello World iphone Example
Hello World iphone with Example In the given tutorial you will be creating a small iphone application called "hello world app" using interface... and SDK in your mac machine. Steps of creating Hello World application

PHP

ZF Hello World
with "Hello World" program. This tutorial is not an exception... are required to run any project and these codes can not be accessed directly...: The purpose of test directory is to store the Unit tests. The basic need

Java Beginners

Hello world program
Hello world program  hello world program   class Hello{ public static void main(String[] args) { System.out.println("Hello World"); } } For more information, visit the following link: http

Spring Framework

Develop Hello World example using Spring 3.0 Framework
, create new project in Eclipse IDE and then write simple Hello World application... to the project. Now we can proceed with our Spring 3 Hello World example. Step 8... Spring 3 Hello World Example

Java Beginners

Hello World Program
Hello World Program  write a java program that continuously prints HelloWorld! to the screen(once every second ) and exists when press the enter key... = new DisplayMessageContinuously("Hello World ", 1000); th.start

Struts-Tutorials

Developing JSP, Java and Configuration for Hello World Application
Writing JSP, Java and Configuration for Hello World Application... and required configuration files for our Struts 2 Hello World application. Now... on the "Run Struts 2 Hello World Application" link on the tutorial

Java Beginners

Need Help - Java Beginners
Need Help  Hello Sir, Am a beginner of Java. Also i did course... projects in Java as well as J2EE... Can u help me and guide to do a project.../reference/tutorials/ http://netbeans.org/kb/trails/java-ee.html http

General

Very simple `Hello world' java program that prints HelloWorld
Hello World Java Simple Java Program for beginners... to develop robust applications. Writing a simple Hello World program is stepwise... HelloWorld.java - the source code for the "Hello, world!" program

Java Beginners

Java Hello World code example
Java Hello World code example  Hi, Here is my code of Hello World program in Java: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World

Spring 4 Tutorial

Spring 4 MVC Hello World Example: Spring 4 MVC Tutorial will full source code
Spring 4 MVC Hello World example and run on Tomcat Server In this video tutorial I will explains you the steps to write Spring 4 MVC based 'Hello World' application which simply displays the 'Hello World' message on the web browser

PHP Tutorial

Smarty Hello World Program
How to write "Hello World" program? In any smarty program we need two files: a) .php file and b).tpl file.     i) .php file: Which...;//enable the caching   \$smarty->assign ('name', 'hello world

XML Tutorials

Hello World XML
.style1 { background-color: #BFDFFF; } Hello World XML To begin working with XML, you need to learn how to create xml file and how...;  <short-desc>This book is good for beginners in XML

Programming Tutorials

Spring 3 MVC hello world, Spring 3.0 Web MVC Example
Spring 3 MVC Hello World Example Getting stated with the Spring 3 MVC by developing first Hello World MVC example. This is the first example of writing.../downloads/. Let's start application "Spring MVC Hello World "

Java-Tutorials

JAVA7 : "Hello World" Example
is beginning point of java program execution. System.out.println(?Hello World... need to start command prompt for compiling and executing. Suppose Your java...) { System.out.println("Hello World!"); } } Description : Here we are using Eclipse IDE

Java Beginners

need help on writing a program. - Java Beginners
Writing first Java Program  Hi, I need help to write my first Java Program other then Hello World! Thanks!!  Hi Thanks for choosing roseIndia to get your query solved. check given link to see the solution of your Java

Development process Questions

School Timetable System in java spring mvc 3
School Timetable System in java spring mvc 3  I want to do project in timetable generation for my project. but i dont know how generate. i'm using java spring Hibernate. please some one help me. Thanks thuva

Ajax

Dojo Hello World
Dojo Hello World      ... World!". To create a button in dojo you need to a Button Widget that contains... and it displays an alert message like: "Click on the Hello World Button"

Ajax

Dojo Hello World
Dojo Hello World      ... a Button The following example we are going to create a button "Hello World... and it displays an alert message like: "Click on the Hello World Button"

Java Code Examples

How to write hello world by using Multiple Writers in pdf
How to write hello world by using Multiple Writers in pdf... we have passed one String "Hello World" . Now we need to make... to tell you how you can write a simple "Hello World" word in a pdf, rtf

Struts 2 Tutorials

Developing Hello World application
Hello World Example A Hello World Example given below which shows the basic... the example</p> <b>Hello World Example</b><br> <a href="roseindia/HelloWorld.action?request_locale=en">Hello World

Spring Framework

Spring MVC Hello World Example
in the Project name text box. Enter Hello World in the Project Name... Spring MVC Hello World Example       Spring MVC Hello World Example in Spring 2.5 In this tutorial we

JavaScript Tutorial

JavaScript Hello World
Hello World Program in JavaScript To write and run a JavaScript program all we need to have a text file and a internet browser. First of all write...;/body> </html>   Output: Hello World

Java Beginners

school mangement application - Java Beginners
school mangement application  record management application for a school IN JAVA + SOURCE CODE.add, delete,modify. No database should be used. All data must be stored in one or two files. total file should not be re-written

Struts 2 Tutorials

Struts 2 Hello World Example
Struts 2 Hello World Example - Video Tutorial that shows how to create Hello... how to develop 'Hello World' application in Struts 2 framework. We... the step-by-step process to create the Hello World application using the Struts

Servlets-Tutorials

Java Servlet : Hello World Example
Java Servlet : Hello World Example In this tutorial, we are discussing about Servlet with simple Hello World Example. Java Servlet : A servlet is web...; for writing simple hello world example of servlet. Step1 : Write servlet, a POJO

Java Beginners

need help - Java Beginners
need help  Need help in programming in Java  Simple java program that will show the output within quotes using system.out.println();DISPLAYING OUPUT " * " ," *** " ........I used System.out.print

Java Beginners

Need help - Java Beginners
Need help   To Write a Java program that asks the users to enter a m * n matrix of integers, m and n being the number of rows and columns...; Hi Friend, Please try the following code. We hope that this code will help

Java Beginners

Sales System.. Need Help!! - Java Beginners
Sales System.. Need Help!!  were going to make a sales system in our subject Database management and that will be our project, we already have... help us.. Thank you very much for your reply in my past questions you are a big

Java Beginners
Tutorials

iPhone Hello World in Objective C
iPhone Hello World in Objective C This is a very simple objective c hello world program example, in which you will learn how to make your first hello world... it will return " Hello, World!" To see the output choose "run->Console" from

JSP Tutorials

JSP Hello World
JSP Hello World We are going to discus about JSP hello world. In this example... instances. we can print simple "Hello World" String on web browser...;% JAVA CODE %> Example <%@ page language="java" contentType="

Java-Tutorials

Sample Java program for beginners
Here beginners in Java can learn to create there first Hello World program... of the special class. Java First Example-Hello World: Now we will create our first program... a beginner in Java will create is a Hello World program, which will simply

Framework Questions

Need Project
Need Project  How to develop School management project by using Struts Framework? Please give me suggestion and sample examples for my project

Ajax Examples

Dojo Hello World
Dojo Hello World         ... be follow the its directory structure. Try Online: Hello World... World!". To create a button in dojo you need to a Button Widget

Java Beginners

need help with a program - Java Beginners
Java algorithm - need help with a program  Java algorithm - need help with a program

Hibernate Tutorial Example

Hibernate 4 Hello World: Example of Hello World program
Hibernate 4 Hello World: Learn how to create first Hello World example... Hello World Program?": We have used the Eclipse IDE for coding... sessionFactory; } } Step 7: Write the code for testing the Hello World

JSP Servlet Questions

help on project - JSP-Servlet
help on project  Need help on Java Project

Java Beginners

java project - Java Beginners
java project  hi this amol i wish to do a project on banking software in java can u help   how can i help u .. and what the kind of help u need u can send mail to me if u want adamlee2010@yahoo.com Mohamed

Java Tips and Examples

Hello world (First java program)
Hello world (First java program)   ... and running. Hello world program is the first step of java programming  language... learned how to write and then test the Hello World! java program.

Java Beginners

need help with a program - Java Beginners
need help with a program   Part I An algorithm describes how... by the user. The output of the program should be the length and width (entered.... First you would need to make up the "test data". For this algorithm, the test data

Struts 2 Tutorials

Struts2.2.1 hello world annotations Example
Struts2.2.1  hello world annotations Example  In this tutorial, We will discuss about hello world application using annotation and how to apply... the annotation in the Struts2.2.1 -- Directory structure of the Hello world application

Web Services

Apache Axis2 Hello World Example
Apache Axis2 Hello World Example     Apache Axis2 Hello World Example In this section we will develop a simple Hello World... engine and then deploy and test the application. About the Hello World Web

Java Beginners

Need help with my project
Need help with my project  Uses a while loop to perform the following steps: -Prompt the user to input two integers: firstNum and secondNum where secondNum is at least 10 greater than firstNum, both numbers are positive integers

Java Beginners

Need *Help fixing this - Java Beginners
Need *Help fixing this  I need to make this program prompt user... and maybe add retrieve function //need help with this one badly. Thanks guys for all the help. import java.text.*; import javax.swing.*; import java.awt.event.

Java Beginners

need project
need project  hi im new on this site so dnt knw actual procedure . but i need a project on banking system in java with sql database. which should... is good plz add it i need project till Saturday i.e 10th march 2012 plzzzz

Java Beginners

code need - Java Beginners
code need  hi i want to code doing for this. If i have enter the text file in my java project. example input is 1,2,3,4,5(it is in input text file...)  Hi Friend, Try the following code. We hope this will help you

Tomcat Server

Writing First Hello World application in JSP
Create your first  hello world web page with jsp...;> <h1> HELLO World </h1> </body>... with Java inside HTML pages. Now we can take any existing HTML page and we

Java Beginners

help - Java Beginners
help  hi,i am new to java & i do not have progamming background, i just run the hello world example given, but i am not seeing the output, it just... to do or what could be the issue? plz help   hello, First complie ur

J2EE

Servlet Annotation Hello World Example in Eclipse
Servlet Annotation Hello World Example in Eclipse In this tutorial you...(); out.println("<h2>Hello World Servlet Annotation Example</h2... from the link http://www.oracle.com/technetwork/java/javase/downloads

Java Beginners

project - Java Beginners
project in Java  Need example project in Java

Java Beginners

help me for doing project - Java Beginners
help me for doing project  i am handling the project that "email... the email headers and how to display the port and user's information please help me thanks in advance who are going to help me bhanukiran

jQuery

jQuery tutorial for beginners with examples
for beginners jQuery Hello World What is jQuery...In this section we will create a simple Hello World example using jQuery library that will help beginners understand how jQuery can be used within

Java Beginners

Need help in constructing bubble sort
Need help in constructing bubble sort  using a bubble sort, for each...://www.roseindia.net/java/beginners/arrayexamples/bubblesort.shtml http://www.roseindia.net/java/beginners/arrayexamples/BidirectionalBubbleSort.shtml

Java Beginners

I need your help - Java Beginners
I need your help  What is the purpose of garbage collection in Java, and when is it used?  Hi check out this url : http://www.artima.com/insidejvm/ed2/gc.html http://java.sun.com/javase/technologies/hotspot

Java-Tutorials

Hello World Quartz Scheduler
Hello World Quartz Scheduler   ... "Hello World Quartz Scheduler  :<date & time>".... Hello World Quartz Scheduler: Fri Feb 16 16:15:10 GMT+05:30

Java Beginners

( Inheritance,need help in Polymorphism, Overriding) - Java Beginners
( Inheritance,need help in Polymorphism, Overriding)  can any one please help me create this application,thank you Advanced Concepts with Classes( Inheritance, Polymorphism, Overriding) Employees in a company are divided

Java Beginners

need help creating a lift program - Java Beginners
need help creating a lift program  Classes, Methods, Constructors please i need help to create an elevator program Simulating an Elevator write... for any help rendered

PHP Tutorial

PHP Hello World
PHP Hello World Example  PHP stands for Hypertext preprocessor. PHP has... do is the Hello world. Syntax for PHP Hello World Program: <?php  ...;/head> <body> <?php echo "Hello World

Java Beginners

I need help in doing this. - Java Beginners
I need help in doing this.  Student DataBase i will need creating a program that will be used to manipulate a student database. This portion..., and the student's GPA.using arrays and objects, need to structure the information

Java Beginners

I need your help - Java Beginners
I need your help  For this one I need to create delivery class for a delivery service .however, this class should contain (delivery number which... the file name is ApplicationDelivery.java Your program must follow proper Java

Apache Geronimo

Deploying Hello World Application on Apache Geronimo Application Server
Deploying Hello World Application on Apache Geronimo Application Server... Hello World JSP application and test on the Apache Geronimo Application Server...://localhost:8080/hello/. Your browser should show the Hello World message

Java Tips and Examples

Java - Applet Hello World
Java - Applet Hello World       This example introduces you with the Applet in Java... is a program provided by java which is designed for execution within the web browser

JSP Servlet Questions

need
need  i need a jsp coding based project plz help me

Java Code Examples

'Hello World' file from a servlet (PDF, HTML or RTF).
'Hello World' file from a servlet (PDF, HTML or RTF... files.And we are printing here Hello Word on PDF, HTML, And RTF formate. To make a program over this, firstly we need to import some packages

Java Beginners

java project - Java Beginners

JSP Servlet Questions

Project realated help - JSP-Servlet
Project realated help   Hi sir i need your assistance em stuck at a point,actualy i am making final year project,i am making OTRS system in java em... ,now i am creating ticket ticket is sucessfully generated but i need if new

Swing AWT

project
project  i need a project in java backend sql

Flex 4

Hello World in Flex 4
.style1 { background-color: #FFFFCC; } Hello World In Flex 4:- First...:Label text="Hello World in Flex 4" x="72" y... "Hello World in Flex4". 2. x, y: These are used for change the x and y

JRuby

Hello World Program in JRuby
"java" stringHello= "Hello World" stringDate... Hello World Program in JRuby   ... HelloWorld.rb Hello World Date := Tue Sep 23 18:12:26 GMT+05:30 2008

Programming Tutorials
Struts-Tutorials

Deploying Struts and testing struts 2 hello world application
Deploying Struts and testing struts 2 hello world application   .../ and then select "Run Struts 2 Hello World Application" from the list.  Here is the output of struts 2 Hello World Application: When run this application

Java Beginners

small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated

Java Beginners

small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated

Framework Questions

school student attendence report
school student attendence report  Hi i want school student attendence genaration source code please urgent help me

Java Tips and Examples

Hello world (First java program)
Hello world (First java program)   .... Hello world program is the first step of java programming  language... learned how to write and then test the Hello World! java program

Java Beginners

java project - Java Beginners
java project  HAVE START A J2ME PROJECT WITH NO CLEAR IDEA .. ANY ONE... project titled, as ?M-News Application? is basically a mobile news application Project. In our project we are going to develop a Mobile Application which

Java Beginners

project
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you

Java Beginners

java help - Java Beginners
[] ar={"Roseindia", "Hello World", "1234"}; String str=""; int num; for(int...java help  Code a catch block that catches a NumberFormatException and then prints the stack trace.  Hi friend, Code a catch block