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 Ascending Direction
  1. PRG420 Week 4 Java 4.14 LAB Contains the character

    PRG/420 Week 4 Java 4.14 LAB: Contains the character

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 4 Java 4.14 LAB: Contains the character


    Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of the program is every word in the list that contains the character at least once. Assume at least one word in the list will contain the given character. Assume that the list of words will always contain fewer than 20 words.


    Ex: If the input is:
    4 hello zoo sleep drizzle z
    then the output is:
    zoo drizzle


    To achieve the above, first read the list into an array. Keep in mind that the character 'a' is not equal to the character 'A.

    Learn More
  2. PRG420 Week 4 Java 4.13 LAB Word frequencies

    PRG/420 Week 4 Java 4.13 LAB: Word frequencies

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 4 Java 4.13 LAB: Word frequencies


    Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with an integer indicating the number of words that follow. Assume that the list will always contain fewer than 20 words.


    Ex: If the input is:
    5 hey hi Mark hi mark
    the output is:
    hey 1
    hi 2
    Mark 1
    hi 2
    mark 1


    Hint: Use two arrays, one array for the strings and one array for the frequencies.

    Learn More
  3. PRG420 Week 4 Java 4.12 LAB Adjust list by normalizing

    PRG/420 Week 4 Java 4.12 LAB: Adjust list by normalizing

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 4 Java 4.12 LAB: Adjust list by normalizing


    When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers.
    For this program, adjust the values by subtracting the smallest value from all the values. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers.


    Ex: If the input is:
    5 30 50 10 70 65
    the output is:
    20 40 0 60 55


    The 5 indicates that there are five values in the list, namely 30, 50, 10, 70, and 65. 10 is the smallest value in the list, so is subtracted from each value in the list.


    For coding simplicity, follow every output value by a space, including the last one.

    Learn More
  4. PRG420 Week 4 Java 4.11 LAB Output values below an amount

    PRG/420 Week 4 Java 4.11 LAB: Output values below an amount

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 4 Java 4.11 LAB: Output values below an amount


    Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value. Assume that the list will always contain fewer than 20 integers.


    Ex: If the input is:
    5 50 60 140 200 75 100
    the output is:
    50 60 75


    The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75. For coding simplicity, follow every output value by a space, including the last one. Such functionality is common on sites like Amazon, where a user can filter results.

    Learn More
  5. PRG420 Week 4 Java 4.10 LAB Middle item

    PRG/420 Week 4 Java 4.10 LAB: Middle item

    Regular Price: $7.00

    Special Price: $3.00

    PRG/420 Week 4 Java 4.10 LAB: Middle item


    Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd.


    Ex: If the input is:
    2 3 4 8 11 -1
    (where a negative indicates the end), the output is:
    4


    The maximum number of inputs for any test case should not exceed 9. If exceeded, output "Too many inputs".
    Hint: First read the data into an array. Then, based on the array's size, find the middle item.

    Learn More
  6. 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
  7. 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
  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.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
  10. 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

Items 11 to 20 of 35 total

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

Grid  List 

Set Ascending Direction