Search:

Type: Posts; User: freky8ss

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    1,112

    Re: User inputs string to get calculated output

    I'm trying to say if the user does not type in neither total or person, there will be an error and a message will output "please enter 'total' or 'person'. I'm trying to say what they enter has to...
  2. Replies
    10
    Views
    1,112

    Re: User inputs string to get calculated output

    C:\Users\Charley\Documents\CSC 110\Programs\Un.java:57: error: '(' expected
    if else (input.equals("person")){
    ^
    C:\Users\Charley\Documents\CSC 110\Programs\Un.java:57: error: illegal start of...
  3. Replies
    10
    Views
    1,112

    Re: User inputs string to get calculated output

    <
    import java.util.Scanner;

    public class Reunion {

    public static void main ( String[] args ) {

    System.out.println("This program calculates the cost of a class reunion...
  4. Replies
    10
    Views
    1,112

    Re: User inputs string to get calculated output

    <
    import java.util.Scanner;

    public class Reunion {

    public static void main ( String[] args ) {

    System.out.println("This program calculates the cost of a class reunion event.");...
  5. Replies
    10
    Views
    1,112

    User inputs string to get calculated output

    Up to the strings, everything is fine. I am VERY new to java. I'm looking to see if I'm heading in the right direction. I would like the user to either enter 'total' or 'person' to get the grand...
  6. Replies
    10
    Views
    1,112

    User inputs string to get calculated output

    Java- two strings that equal separate math functions output when user enters either word?
    Up to the strings, everything is fine. I am VERY new to java. I'm looking to see if I'm heading in the right...
Results 1 to 6 of 6