-80%

New Sol: prg 420 prg420 prg/420 entire course help – university of phoenix

$53.99$275.00

prg 420 prg420 prg/420 entire course help – university of phoenix

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

This course is a study in Java™ programming. It covers topics around Java™ building blocks, operators, core APIs, methods and exceptions. These topics are closely aligned with Oracle® Certified Associate Java™ SE examination.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Description

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

BUY PLAGIARISM FREE PAPER

This course is a study in Java™ programming. It covers topics around Java™ building blocks, operators, core APIs, methods and exceptions. These topics are closely aligned with Oracle® Certified Associate Java™ SE examination.

PRG 420 Week 1 Java 1.13 LAB Right-facing arrow

Given two input integers for an arrowhead and arrow body, print a right-facing arrow.
Ex: If the input is:
0 1

the output is:
1
11
00000111
000001111
00000111
11
1

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.23 LAB Adjust List by Normalizing Methods

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 less than 20 integers.

Ex: If the input is:
5 30 50 10 70 65
the output is:
20 40 0 60 55
For coding simplicity, follow every output value by a space, even the last one.

Your program must define and call a method:
public static int getMinimumInt(int[] listInts, int listSize)

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.20 LAB Acronyms

An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is a phrase and whose output is an acronym of the input. If a word begins with a lower case letter, don’t include that letter in the acronym. Assume there will be at least one upper case letter in the input.

Ex: If the input is Institute of Electrical and Electronics Engineers, the output should be:
IEEE

Your program must define and call a method thats returns the acronym created for the given userPhrase.
public static String CreateAcronym(String userPhrase)

Hint: Refer to the ascii table to make sure a letter is upper case.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.19 LAB Remove Spaces Methods

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.

Your program must define and call the following method. The method should return a string representing the input string without spaces.
public static String removeSpaces(String userString)

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.18 LAB Flip a Coin

Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0.

Ex: If the input is:
3
the output is:
tails
heads
tails

For reproducibility needed for auto-grading, seed the program with a value of 2. In a real program, you would seed with the current time. In that case, every program’s output would be different, which is what is desired but can’t be auto-graded.

Note: A common student mistake is to create an instance of Random before each call to rand.nextInt(). But seeding should only be done once, at the start of the program, after which rand.nextInt() can be called any number of times.

Your program must define and call the following method that returns “heads’ or ‘tails”.
public static String headsOrTails(Random rand)

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.17 LAB Max Agnitude

Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the method in a program that takes two integer inputs, and outputs the largest magnitude value.

Ex: If the inputs are:
5 7
the method returns:
7

Ex: If the inputs are:
-8 -2
the method returns:
-8

Note: The method does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the absolute value built-in math method.

Your program must define and call a method:
public static int maxMagnitude(int userVal1, int userVal2)

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 5 Java 5.16 LAB Step Counter

A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
System.out.printf(“%.2f”, yourValue);

Ex: If the input is:
5345
the output is:
2.67

Your program must define and call a method:
public static double stepsToMiles(int userSteps)

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 4 Java 4.16 LAB Two Smallest Numbers

Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that follow. You can assume that the list will have at least 2 integers and fewer than 20 integers.

Ex: If the input is:
5 10 5 3 21 2
the output is:
2 3
To achieve the above, first read the integers into an array.
Hint: Make sure to initialize the second smallest and smallest integers properly.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 4 Java 4.15 LAB Elements in a Range

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. Assume that the list will always contain fewer than 20 integers.
That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a space, even the last one. The output ends with a newline.

Ex: If the input is:
5 25 51 0 200 33 0 50
then the output is:
25 0 33
(the bounds are 0-50, so 51 and 200 are out of range and thus not output).
To achieve the above, first read the list of integers into an array.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG420 Week 3 Java 3.15 LAB Count Input Length

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”, “!”).

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

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

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 2 Java 2.18 LAB Warm up

(1) If a user’s input string matches a known text message abbreviation, output the unabbreviated form, else output: Unknown. Support two abbreviations: LOL — laughing out loud, and IDK — I don’t know. (4 pts)

Sample input/output:
Input an abbreviation:
LOL
laughing out loud

(2) Expand to also decode these abbreviations. (3 pts)
BFF — best friends forever
IMHO — in my humble opinion
TMI — too much information

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 1 Java 1.31 LAB Phone number Breakdown

Given a long integer representing a 10-digit phone number, output the area code, prefix, and line number using the format (800) 555-1212.

Ex: If the input is:
8005551212
the output is:
(800) 555-1212

Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72.
Hint: Use / to shift right by the desired amount. Ex: Shifting 572 right by 2 digits is done by 572 / 100, which yields 5. (Recall integer division discards the fraction).
For simplicity, assume any part starts with a non-zero digit. So 0119998888 is not allowed.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 1 Java 1.30 LAB Mad Lib

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.
Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story.

Ex: If the input is:
Eric Chipotle 12 cars

the output is:
Eric went to Chipotle to buy 12 different types of cars.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

PRG 420 Week 1 Java 1.29 LAB Expression for Calories Burned During Workout

The following equations estimate the calories burned when exercising (source):
Women: Calories = ( (Age * 0.074) – (Weight * 0.05741) + (Heart Rate * 0.4472) – 20.4022 ) * Time / 4.184
Men: Calories = ( (Ago * 0.2017) – (Weight * 0.09036) + (Heart Rate * 0.6309) – 55.0969 ) * Time / 4.184

Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively.
Output calories burned for women and men.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
System.out.printf(“%.2f”, yourValue))

Ex: If the input is:
49 155 148 60
the output is:
Women: 580.94 calories
Men: 891.47 calories

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

Employees at a certain company get a yearly bonus based on years of service

Employees at a certain company get a yearly bonus based on years of service.  The bonus is a percentage of their annual salary based on the table below.

Years of ServiceBonus Percentage
< 53%
5 – 147%
15++12%

Create a class called Employee that can be used for this.
It should have attributes of

  • Name;
  • Years; and
  • Salary.

Create the following methods.

  • Default constructor to initialize all attributes
  • Get/Set for name, years, salary
  • Get to calculate and return bonus rate
  • Get to calculate and return bonus amount

This class will be used with the Bonus Calculator GUI shown below.

With the following named components:
[table]
Component, Type, Purpose
txtName, JTextField, Input for name
txtYears, JTextField, Input for years
txtSalary, JTextField, Input for salary
btnCalc, JButton ,Click to calculate bonus
txtBonusPercent, JTextField, Displays bonus percentage
txtBonusAmount, JTextField, Displays bonus amount
[/table]
You DO NOT have to code the GUI.
The action listener for btnCalc is set up as follows.

1
2
3
4
5
btnCalc.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
                  calcBonus();  //write the code for this method
         }
});

Write a program that will help a student practice basic math (addition, subtraction, multiplication, and division). Display a menu the student can select from. The student will make a selection and will have the option to continue with that type of math problem. When the student is done with that type of math problem the main menu will be displayed and allow the student to select another type of problem. When the student exits the program their results will be displayed (ex. Addition: 3 correct 2 incorrect)

REQUIREMENTS :

  • Pseudocode design
  • Properly named fields and methods
  • Ifs, loops, switchs (basic error checks)
  • Randomize numbers
  • User defined classes (multiple classes)
  • Clean and intuitive displays

HINTS:
Create multiple classes and methods to keep Main program short.
Use methods in the classes other than the normal gets/sets
Randomize 0-10 for numbers in the math problems.
Use fields to track the correct and incorrect counts.
Break everything down to smaller simpler methods and code
Try not to over complicate

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

TicketsRUs needs an application to calculate ticket prices

TicketsRUs needs an application to calculate ticket prices. There are three ticket prices:

  • Orchestra     $85 each
  • Mezzanine    $70 each
  • Balcony       $45 each

There is also a 15% discount on matinee performances.

Your application has the GUI shown below.

With the following named components:

ComponentTypePurpose
txtNumJTextFieldInput for number of tickets
chkMatineeJCheckBoxCheck if matinee performance
radOrchestraJRadioButtonCheck for orchestra tickets
radMezzanineJRadioButtonCheck for mezzanine tickets
radBalconyJRadioButtonCheck for balcony tickets
btnCalcJButtonClick to calculate price
txtEachJTextFieldDisplays price of each ticket
txtTotalJTextFieldDisplays total price

Clicking the CalcPrice button should determine the price per ticket and the total price based on the user’s input and display in txtEach and txtTotal. You should make sure the number of tickets is entered and a ticket type is selected, otherwise give an error message.

The action listener for btnCalc is set up as follows.

1
2
3
4
5
btnCalc.addActionListener(new ActionListener() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void actionPerformed(ActionEvent e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calcPrice();&amp;nbsp; //write the code for this method
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});

Write the calcPrice method that is called by the action listener. This class method has access to all of the GUI components. You DO NOT HAVE TO CODE THE GUI. ONLY write the code for this method which does all the work. The header for the method is:

1
private void calcPrice()
Screenshots
Preview the Tutorial

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

Inheritance and Exception Handling

GoBank has been asked to go back and reprocess the loan payments for a car loan of $18,875. The car loan is a 0% interest loan. The loan is for 60 months. The customer does not believe the bank has the correct outstanding balance for her loan ($12,500). The customer has copies of 20 payments made to the bank. A clerk makes a copy of the payments and enters them into a file.

To verify the banks total, read the file and write a program using a CarLoan class that extends the BankAccount class (found on page 671 – 672 in the textbook).

The CarLoan class has the following features.

An overload constructor that initializes the car loan balance. (Hint: Uses super to set the balance.)

Create a CarLoanClient class that

  1. Create CarLoan object (see CheckingAccountClient line 9 on page 667).
  2. Read the file one payment at a time (Include exception handling code see example on page 755).
  3. Use the payment read from the file to pass the information to method to calculate the outstanding balance. Hint: Use the withdrawal method.
  4. Printout the payment number, payment amount and outstanding balance.
  5. Continue to process for each payment until the end of the file.

Create a text file with the following numbers.
[table]
Monthly Payment
315
451
315
374
353
315
450
484
412
315
495
476
321
315
406
329
326
356
315
325
[/table]
Make a screenshot of the output and include it as an attachment to the Week 7 Assignment. Also, include the program code in a text file to run on another computer.

PRG 420 PRG420 PRG/420 ENTIRE COURSE HELP – UNIVERSITY OF PHOENIX

  • PRG 420 Week 1 Individual Assignment,
  • PRG 420 Week 2 Individual Assignment,
  • PRG 420 Week 3 Individual Assignment,
  • PRG 420 Week 4 Individual Assignment,
  • PRG 420 Week 5 Individual Assignment

Tsubo Conversion Program

Tsubo is a Japanese unit of measure for area. 1 Tsubo is equal to 35.58 square feet.

Write a program that asks the user if they want to convert from Tsubo to square feet or from square feet to Tsubo.
Include code that asks users to input a number to convert. The code should also display the converted unit.
Include proper documentation in the source code.

Take a screenshot of the program output and paste it into a Word document.
Submit a .zip file containing the “.java” file(s)