Question: The LASTNAMEfirstInitta_P1.Jawa Jawi Application Note: Every variable that you create must have a sufflr xxx, where XXX your intak (first, middle, last) If any variable

The LASTNAMEfirstInitta_P1.Jawa Jawi Application Note: Every variable that you create must have a sufflr xxx, where XXX your intak (first, middle, last) If any variable that do not apply sums xxx, 2 pts deduction per variable. Any additional variables that were not specified for you to use, you will create them, and these should have this suffis, _XXX. The only variable that you do not need a suffix is keyboard, Scanner object. Make sure that you write comment throughout your program, It does not need to be very line, but overall of what each code segment and what it does. Is po Part A - Review concepts on reading integer input, validate input, and then use loop to print mathematical ealculation and running total, and finally print and format output. 130 points] In this part, you will write: (1) You will prompt a user to enter an integer called limit. [2pt] (2) You must validate the input and that limit should be at least 5. Otherwise, you will continue asking the user to reenter until they enter 5 or higher. [validate data -- 3 pts] (3) Using a for-loop, for each integer 1 up to limit, you will print out a number, its square value, its cube value, its power of values and its square root value. Note that Square, Cube, and Power of 5 should be in integer while Square Root is in decimal point with 3. You must use Math.pow() for calculating square, cube, and power of S. fusing loop to print out correct results, data types, and format as stated 15 pts) (4) At the end, you should also print a total of square, a total of cube, a total of power of 5, a total of square root. (correctly keep track running total and print out 10 pts) Sample output for this portion (make sure that you will print Part information after your required introduction statement for your output (see first page). ourpu may vary based on a number you enter more than you could not live up numbers, for this assignment is fine as long as you have everything integer except square roor that has decimul points) var 15 BEOGRAD - Validate Lope and find Total Zie hatt 2 Tuntered on least ry ose e ant5 o a G w hp mis Part, you will: (1) Ask user to enter a String and store it in a variable called word (String variable) and the user will enter STOP when they want to exit this loop. [reading input and able to create a loop using a String as a sentinel value -- 5 pts] (2) If word is not "STOP", you will do the following a. You will figure out how many characters that word has, size (integer variable). [3 pts] b. You will figure out the first character (firstChar), middle character (midChar) as well as last character (lastChar) of the UPPERCASE of a word - these variables are char variables. (utilize String method to get information - 15 pts] c. Then, you will use that to create a pattern, a String variable that consist of the following information in this order without space: Middle Character midChar Last Character Number of Characters First Characters lastChar size firstChar For example, if a user enters "Morning" for a word, pattern will have a value of "NG7M" based on the uppercase characters for middle ('N), last ("G'), and first ("M") along with size of 7 characters. [Assign correct value to patter and print out - 10 pts] (3) Remember with the loop, you will ask user again to enter a String, and only exit the loop if the user enter "STOP" for a word. You should not have pattern printed if the user enter STOP. [make sure that the loop continues or exits based on given criteria 10 pts] (4) You will also keep track (a) how many words that the user entered, excluding "STOP" (e) how many of these words that have size longer than 5 but not than 10 and (c) how many of these words that have size longer than 10. Then, print these at the end. fcorrect get the total counts and print - 7 pts] Sample Output for this part (outpur may vary based on a number you enter; reminder that red orange is input from user) 100 g Sting Anput. Man palasenenti wat ROW TO at Pond MS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
