Question: Please help me with the following Java programming project questions, I hope to get a correct answer as a reference, thank you very much. I

Please help me with the following Java programming project questions, I hope to get a correct answer as a reference, thank you very much.
I need to finish two tasks in this exercise:
Read a line of text from the user (after finishing one line the program will read another line until the user enters 'bye' as the input)
Convert the 'emoji letters' to emojis
If c equals to 'h' or 'H', change it to a happy emoji: :-)
If c equals to 'a' or 'A', change it to an angry emoji: *^*
If c equals to 's' or 'S', change it to a sad emoji: :-(
Here is part of the code
import java.util.Scanner;
public class AsciiToEmoji
{
/**
* The starting point of the program.
*/
public static void main(String[] args)
{
// Task 1.1: Prepare a scanner for user input handling
// The input line
String line ="";
// A temporary character as buffer
char ch ='';
// Keep asking for the input until it is equal to "bye"
do {
System.out.print("Please enter a line of text (enter 'bye' to quit the program): ");
// Task 1.2: Read a line from the scanner object
// Task 2: Convert the emoji letters to emojis
} while (false);
}
}
Here is an example output of the finished progam.
Please enter a line of text (enter 'bye' to quit the program): What?
W:-)*^*t?
Please enter a line of text (enter 'bye' to quit the program): Someone changed my text!
:-(omeone c:-)*^*nged my text!
Please enter a line of text (enter 'bye' to quit the program): Oh!
!
Please enter a line of text (enter 'bye' to quit the program): bye
bye
 Please help me with the following Java programming project questions, I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!