Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are program will: Call your printWelcomel) or printWelcome(String value) Request User for a String Display the Users String . Then Perform the following tasks

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

You are program will: Call your printWelcomel) or printWelcome(String value) Request User for a String Display the Users String . Then Perform the following tasks and functions below. Perform the Following Functions on the String and Print It Convert the String to Upper String Convert the String to Lower Case ADDITIONAL Methods to Call Since we have already started to USE Methods in Coding Bat make the following as Functions using the logic outlined above. You will PERFORM ALL of the methods below agains the INPUT from the user. ** REMEMBER If the Method returns a value, you MUST print it from main and ideally capture the value in a variable and then print it! public static void reverseString(String val){ NOTE: Using for loop and charAt reverse the string. } public static int countEandG(String val){ int letterCnt = 0; return letterCnt; } public static void quarter Stack(String val){ NOTE: Using substring split the Strings in quarters - Display "To Small of a String: "+val+" for Quarter Stack!" if less than 4 chars . Using Modulus: 7 % 4 = 3,6 %4 = 2 if the word does not divide evenly into 4 adjust the String size. o // Sample Quarter Word Stack . // Input: "Apples" // Sample Output I/A Ilp //pl lles // Input Quarter Word Stack // 01234567890123456 // Apples are great! // // Sample Output // Appl // es a // reg // reat! public static int countTheZDPs(String val){ Using.index of in a While Loop count the number of "ZDP"'s in the String. Ensure you check for Upper and lower Case ZDPS } o TEST: countTheZDPs("Its a ZDP day for coding, its a zdp day for coding, won't you code")-> 2 public static boolean isPalindrome(String val){ o Words that are arranged the same way forward as they are backwards are Palindromes. Example: RADAR. o return true IF the word passed in is a Palindrome } public static void javaRounding(int val){ . Using the Math. functions: Display the Original Value Take the Square Root of the Value (Say 2) Square the Value. - SHOW the difference in the value after Java rounds/truncates SUBMISSION You will Submit a .pdf created from A Google Doc. At the Top you are GOING TO Show 1 Sample RUN from the Console Widow. (Just a Sample not this Asg). SAME My Calculator Enter your Name: Bill Bill your Calculations.. Int #1: 5 Int #2: 4 Int #3: 3 Your Input --- Int #1: 5 Int #2: 4 Int #3: 3 Int #3: 3 Methods - Add: 12 - Divide: 1.25 O Required Test Data (1 at TOP / Rest after Code) = Run the FOLLOWING Samples in THIS ORDER Radar, 2 Da Goodies at Zdp arg zdp groovy, 4 Apples, 7 Carrots, 23

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

How does a joint venture differ from a strategic alliance?

Answered: 1 week ago

Question

a. How are members selected to join the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago