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.
-
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:
Learn More
Julia Clark
the output is:
Clark, Julia -
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 0the 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 -
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 -1the output is:
Learn More
10 20
You can assume that at least one non-negative integer is input. -
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:
yesEx: If the input is:
42,000
or
1995!
the output is:
noHint: Use a loop and the Character.isDigit() function.
Learn More -
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:
Learn More
HellomynameisJohn. -
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:
Learn More
Listen, Mr. Jones, calm down.
the output is:
21
Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!"). -
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 25Ex: If the second integer is less than the first as in:
Learn More
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. -
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:
Learn More
Hello there
Hey
quit
the output is:
ereht olleH
yeH -
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 palindromeEx: If the input is:
bobby
the output is:
bobby is not a palindromeHint: 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 -
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:
Learn More
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.