Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm completely lost, I need help The question asks to create the class called PP7Modified to create the output shown below, it doesn't provide it

image text in transcribed

I'm completely lost, I need help

The question asks to create the class called PP7Modified to create the output shown below, it doesn't provide it :

image text in transcribed

No, the assessment doesn't provide the PP7Modifier class, you need to create it to produce the output shown

4. Complete the class PP7 Modified to produce the output shown. * Chapter 6 Programming Project 7 Modified Driver * @author Guillermo Leal (direct all questions/complaints to him!) * @version December 14, 2015 public class PP7Modified_Driver public static void main(String args[]) System.out.println("Welcome! InRemember to only enter positive " + numbers of type int "); PP7 Modified firstSet = new PP7 Modified: System.out.println("Please enter the first number."); System.out.print("Number 1: "); int firstNumber = Savitchin.readInt(); System.out.println(" Please enter the second number."); System.out.print("Number 2: "); int second Number - Savitchin.readInt(); first Set.setNumbers( firstNumber, secondNumber); System.out.print(" "); first Set.displaySum(); System.out.print(" The digits of \"num1\" and \"num21" will be " + " placed in their respective character arrays: "); first Set. intToCharArray (: System.out.print(" "); first Set.elementSum(); System.out.print(" "); first Set. sortArray(); System.out.print(" "); PP7Modified, tryAgain(); Welcome! Remember to only enter positive numbers of type int Please enter the first number ==> Number 1: 953 Please enter the second number ==> Number 2: 817 "num1 + "num2 = 1770 The digits of "num 1' and 'num2 will be placed in their respective character arrays: num1 Digits[0] = 9 num 2Digits[0] = 8 num1 Digits[1] = 5 num2Digits[1] = 1 num1 Digits[2] = 3 num2Digits[2] = 7 The sum of the values in "num1 Digits is 17 The sum of the values in "num 2Digits is 16 The elements in both arrays will now be sorted backwards: num1 Digits[2] = 3 num2Digits[2] - 7 num1 Digits[1] = 5 num2Digits[1] = 1 num1 Digits[0] = 9 num2Digits[0] = 8 Would you like to try again with other numbers? Enter 'yes' to try again or anything else to exit. Choice: This was fun! Good bye! Welcome! Remember to only enter positive numbers of type int Please enter the first number ==> Number 1: 953 Please enter the second number ==> Number 2: 817 "num1' + 'num2 = 1770 The digits of "num1" and "num2" will be placed in their respective character arrays: num1 Digits[0] = 9 num2Digits[0] = 8 num1 Digits[1] = 5 num2Digits[1] = 1 num1 Digits[2] = 3 num2Digits[2] = 7 The sum of the values in 'num1 Digits' is 17 The sum of the values in 'num2 Digits is 16 The elements in both arrays will now be sorted backwards: num1 Digits[2] = 3 num 2Digits[2] = 7 num1 Digits[ 1= 5 num2 Digits[1] = 1 num1 Digits[0] = 9 num2Digits[0] = 8 Would you like to try again with other numbers? Enter "yes" to try again or anything else to exit. Choice: This was fun! Good bye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions