100%(2)2 out of 2 people found this document helpful
This preview shows page 4 - 7 out of 7 pages.
Q3.2 Modify the program you created in Q3.1 so that the user can provide the values for pmt, i, and nthrough the console.import java.util.Scanner;public class PercentagePrinter
Q4. StringQ4 Using the substringmethod and concatenation, write a sequence of commands that will extract characters from inputString = "The quick brown fox jumps over thelazy dog"to make outputString = "Tempus fugit". Then print outputString.