Java

Need Help in Java Assignment?
We can help you if you are having difficulty with your Java Assignment. Just email your Java Assignment at admin@assignmentcache.com.
We provide help for students all over the world in Java Assignment.

Items 41 to 50 of 177 total

per page
Page:
  1. 3
  2. 4
  3. 5
  4. 6
  5. 7

Grid  List 

Set Ascending Direction
  1. PRG420 Week 3 Java 3.18 LAB Palindrome

    PRG/420 Week 3 Java 3.18 LAB: Palindrome

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.18 LAB: Palindrome


    A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: 'bob,' "sees,' or "never odd or even' (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome.


    Ex: If the input is:
    bob
    the output is:
    bob is a palindrome


    Ex: If the input is:
    bobby
    the output is:
    bobby is not a palindrome


    Hint: Start by just handling single-word input, and submit for grading. Once passing single-word test cases, extend the program to handle phrases. If the input is a phrase, remove or ignore spaces.

    Learn More
  2. PRG420 Week 3 Java 3.17 LAB Print string in reverse

    PRG/420 Week 3 Java 3.17 LAB: Print string in reverse

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.17 LAB: Print string in reverse


    Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters 'Quit', "quit, or 'q' for the line of text.


    Ex: If the input is:
    Hello there
    Hey
    quit
    the output is:
    ereht olleH
    yeH

    Learn More
  3. PRG420 Week 3 Java 3.16 LAB Output range with increment of 10

    PRG/420 Week 3 Java 3.16 LAB: Output range with increment of 10

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.16 LAB: Output range with increment of 10


    Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer.


    Ex: If the input is:
    -15 30
    the output is:
    -15 -5 5 15 25


    Ex: If the second integer is less than the first as in:
    20 5
    the output is:
    Second integer can't be less than the first.
    For coding simplicity, output a space after every integer, including the last.

    Learn More
  4. PRG420 Week 3 Java 3.15 LAB Count input length without spaces, periods, or commas

    PRG/420 Week 3 Java 3.15 LAB: Count input length without spaces, periods, or commas

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.15 LAB: Count input length without spaces, periods, or commas


    Given a line of text as input, output the number of characters excluding spaces, periods, or commas.


    Ex: If the input is:
    Listen, Mr. Jones, calm down.
    the output is:
    21
    Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!").

    Learn More
  5. PRG420 Week 3 Java 3.14 LAB Remove spaces

    PRG/420 Week 3 Java 3.14 LAB: Remove spaces

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.14 LAB: Remove spaces


    Write a program that removes all spaces from the given input.


    Ex: If the input is:
    Hello my name is John.


    the output is:
    HellomynameisJohn.

    Learn More
  6. PRG420 Week 3 Java 3.13 LAB Checker for integer string

    PRG/420 Week 3 Java 3.13 LAB: Checker for integer string

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.13 LAB: Checker for integer string


    Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every character is a digit 0-9.


    Ex: If the input is:
    1995
    the output is:
    yes


    Ex: If the input is:
    42,000
    or
    1995!
    the output is:
    no


    Hint: Use a loop and the Character.isDigit() function.

    Learn More
  7. PRG420 Week 3 Java 3.12 LAB Varied amount of input data

    PRG/420 Week 3 Java 3.12 LAB: Varied amount of input data

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.12 LAB: Varied amount of input data


    Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the average and max. A negative integer ends the input and is not included in the statistics.


    Ex: When the input is:
    15 20 0 5 -1


    the output is:
    10 20
    You can assume that at least one non-negative integer is input.

    Learn More
  8. PRG420 Week 3 Java 3.11 LAB Mad Lib - Loops

    PRG/420 Week 3 Java 3.11 LAB: Mad Lib - Loops

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 3 Java 3.11 LAB: Mad Lib - Loops


    Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways.


    Write a program that takes a string and integer as input, and outputs a sentence using those items as below. The program repeats until the input string is quit 0.


    Ex: If the input is:
    apples 5
    shoes 2
    quit 0


    the output is:
    Eating 5 apples a day keeps the doctor away.
    Eating 2 shoes a day keeps the doctor away.


    Note: This is a lab from a previous chapter that now requires the use of a loop.

    Learn More
  9. PRG420 Week 2 Java 2.24 LAB Name format

    PRG/420 Week 2 Java 2.24 LAB: Name format

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 2 Java 2.24 LAB: Name format


    Many documents use a specific format for a person's name. Write a program whose input is: firstName middleName lastName, and whose output is: lastName, firstName middlelnitial.


    Ex: If the input is:
    Pat Silly Doe
    the output is:
    Doe, Pat S.
    If the input has the form firstName lastName, the output is lastName, firstName.


    Ex: If the input is:
    Julia Clark
    the output is:
    Clark, Julia

    Learn More
  10. PRG420 Week 2 Java 2.23 LAB Leap Year

    PRG/420 Week 2 Java 2.23 LAB: Leap Year

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 2 Java 2.23 LAB: Leap Year


    A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are:
    1) The year must be divisible by 4
    2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400
    Some example leap years are 1600, 1712, and 2016.


    Write a program that takes in a year and determines whether that year is a leap year.


    Ex: If the input is:
    1712
    the output is:
    1712 is a leap year.


    Ex: If the input is:
    1913
    the output is:
    1913 is not a leap year.

    Learn More

Items 41 to 50 of 177 total

per page
Page:
  1. 3
  2. 4
  3. 5
  4. 6
  5. 7

Grid  List 

Set Ascending Direction