Click here to Skip to main content
15,302,455 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have finished my code and I need my pseudo to be exact and I am just asking if somebody can look over them both and see if they are matching and if not let me know what bits I am missing all help will be appreciated

SCANNER .... Scan
INT .... num1, num2
STRING... Age, name,First,Second
CREATE scanner object

PRINT Enter a number
GET number from user
DECLARE first as string
SCAN the next line

GET second number from the user
DECLARE second as string

CONVERT first to num1
CONVERT second to num2

PRINT what is your name?
GET a name from the user
DECLARE string as name
SCAN the next line

GET the age from the user
DECLARE age as string

PRINT name and age and your answer is and multiply num1 by num2

import java.util.Scanner;
import javax.swing.JOptionPane;
 * @author Adam
public class Inputting {

    public static void main(String[] args) {
        Scanner Scan = new Scanner (; // Creates the Scanner to allow input

        System.out.print("Enter a Number");
        String first =;

        //System.out.println("you have entered " + first);

        String Second; // Second Declared as a string
        Second = JOptionPane.showInputDialog("Enter Another Number");

        int num1 =  Integer.parseInt (first);
        int num2 = Integer.parseInt (Second);

        //System.out.println("you have entered" + Second);

        System.out.print("What is your Name?");
        String name =;

        String Age; // Age Declared as a String
        Age = JOptionPane.showInputDialog("Enter your age ");

        System.out.println( name + " "+ "(Aged" + " " + Age +  ")" + "," + "your answer is " + num1*num2 );


Richard MacCutchan 31-May-15 12:51pm
Why can't you look to see what bits are missing? Run some tests and compare the results with what you expect.
Adamdew93 31-May-15 13:48pm
Cause from what I see everything is there so I just wanted to get a second pair of eyes to look at it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900