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 21 to 30 of 35 total

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

Grid  List 

Set Ascending Direction
  1. 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
  2. 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
  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.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
  5. 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
  6. 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
  7. PRG420 Week 2 Java 2.22 LAB Exact change

    PRG/420 Week 2 Java 2.22 LAB: Exact change

    Regular Price: $7.00

    Special Price $3.00

    PRG/420 Week 2 Java 2.22 LAB: Exact change

    Write a program with total change amount in pennies as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.

    Ex: If the input is:
    0
    the output is:
    No change

    Ex: If the input is:
    45
    the output is:
    1 Quarter
    2 Dimes

    Learn More
  8. PRG420 Week 2 Java 2.21 LAB Seasons

    PRG/420 Week 2 Java 2.21 LAB: Seasons

    Regular Price: $7.00

    Special Price $3.00

    PRG/420 Week 2 Java 2.21 LAB: Seasons

    Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.

    Ex: If the input is:
    April 11
    the output is:
    Spring
    In addition, check if the string and int are valid (an actual month and day).

    Ex: If the input is:
    Blue 65
    the output is:
    Invalid

    The dates for each season are:
    Spring: March 20 - June 20
    Summer: June 21- September 21
    Autumn: September 22 - December 20
    Winter: December 21 - March 19

    Learn More
  9. PRG420 Week 2 Java 2.20 LAB Interstate highway numbers

    PRG/420 Week 2 Java 2.20 LAB: Interstate highway numbers

    Regular Price: $7.00

    Special Price $3.00

    PRG/420 Week 2 Java 2.20 LAB: Interstate highway numbers

    Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90.
    Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west.

    Ex: If the input is:
    90
    the output is:
    I-90 is primary, going east/west.
    Ex: If the input is:
    290
    the output is:
    I-290 is auxiliary, serving I-90, going east/west.
    Ex: If the input is:
    0
    or any number not between 1 and 999, the output is:
    0 is not a valid interstate highway number.

    See Wikipedia for more info on highway numbering.

    Learn More
  10. PRG420 Week 2 Java 2.19 LAB Smallest number

    PRG/420 Week 2 Java 2.19 LAB: Smallest number

    Regular Price: $7.00

    Special Price $3.00

    PRG/420 Week 2 Java 2.19 LAB: Smallest number

    Write a program whose inputs are three integers, and whose output is the smallest of the three values.

    Ex: If the input is:
    7 15 3
    the output is:
    3

    Learn More

Items 21 to 30 of 35 total

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

Grid  List 

Set Ascending Direction
[profiler]
Memory usage: real: 14155776, emalloc: 13901952
Code ProfilerTimeCntEmallocRealMem