Welcome to AssignmentCache!

PRG420 Java Programming I

Need Help in PRG/420 Java Assignments?
We can help you if you are having difficulty with your PRG420 Assignment. Just email your assignments at support@assignmentcache.com.
We provide help for students all over the world.

Items 11 to 20 of 35 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4

Grid  List 

Set Descending Direction
  1. 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
  2. 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
  3. 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
  4. 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
  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.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
  7. 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
  8. 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
  9. 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
  10. PRG420 Week 4 Java 4.9 LAB Output numbers in reverse

    PRG/420 Week 4 Java 4.9 LAB: Output numbers in reverse

    Regular Price: $7.00

    Special Price $3.00

    PRG/420 Week 4 Java 4.9 LAB: Output numbers in reverse

    Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicating the number of integers that follow. For coding simplicity, follow each output integer by a space, including the last one. Assume that the list will always contain fewer than 20 integers.

    Ex: If the input is:
    5 2 4 6 8 10
    the output is:
    10 8 6 4 2
    To achieve the above, first read the integers into an array. Then output the array in reverse.

    Learn More

Items 11 to 20 of 35 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4

Grid  List 

Set Descending Direction
[profiler]
Memory usage: real: 14680064, emalloc: 14220360
Code ProfilerTimeCntEmallocRealMem