Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scanner Object Scanner,java 3 36 // TOD0 (1e) Add code to the program to do the opposite. That is, you'll now now need 37 to
Scanner Object
Scanner,java 3 36 // TOD0 (1e) Add code to the program to do the opposite. That is, you'll now now need 37 to prompt your user for a number between 1,000 and 999,999 (thistime, without the comma). Then you'll write the code to display the user's number with the comma at the appropriate Location. For example, if the user enters 123456 then the output here would be: 123,456 39 41 4 43 44 (2) MODIFIED PHRASE 45 // TODO (2a) 47 48 49 50 51 52 53 54 Write some code to prompt the user to enter a sentence or phrase. Thern ask them for two letters: the first will be the letter in their sentence/ phrase to be replaced, the second will be the letter that will do the replacing. Once you've finished asking for and reading this information, print out the newly modified sentence/phrase with the appropriate letters replaced For example, your output might show: Enter a phrase: There are 10 kinds of people in the world Enter the letter to be replaced o Enter the letter you want the o to be replaced by: a The new phrase is: There are 10 kinds of people in the world 56 8 (3) PRACTICE PROBLEM 9 e II TODO (3a) Generate some random numbers using Math.random ()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started