(Java) HELP!
Create a program that will ask the user to enter their first name and their favorite number. Ask the user if they would like the information repeated back to them. If they type "Y" display the answers back to them. If they type anything else, display the word "Goodbye".
An example of what your output window should look like is below. The system-generated output is in red. The user-provided input is in green. (Your actual program will only display text in black - don't attempt to change the output window colors in Netbeans.)
What is your first name?: Dave
What is your favorite number?: 27
Would you like this information repeated back to you? If yes, type 'Y': Y
Your Information: Dave 27
Hints: * You should not have a space in your first name. Letters only. * If the user types a lowercase "y" the output should just say "Goodbye". You're looking for an uppercase "Y" only. * This program requires keyboard input so you must use a Scanner (see Chapter 2) * This program requires conditional logic so you must use an "if" statement (see Chapter 3)
import java.util.*;
class Information
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String name;
int favNum;
System.out.print("\n\nWhat is your first name ? : ");
name=sc.next();
System.out.print("\nWhat is your favorite number? : ");
favNum=sc.nextInt();
System.out.print("\nWould you like this information repeated
back to you? If yes, type 'Y': Y : ");
String yN=sc.next();
if(yN.equals("Y"))
{
System.out.println("\nYour Information : "+name+" "+favNum);
}
else
{
System.out.println("\nGoodbye");
}
System.out.println("\n");
}
}

(Java) HELP! Create a program that will ask the user to enter their first name and...
Create a program that will ask for the name, age, address, and
favorite food of the user. After which, create a calculator with
ADD, SUB, MULTI, and DIV. Then the program will display all the
user have inputted in bash program
ACTIVITY 4: Create a program that will ask for the name, age, address, and favorite food of the user. After which create a calculator with ADD, SUB, MULTI, and DIV. Then the program will display all the user have...
This is a Java text only program. This program will ask if the user wants to create a music playlist. If user says he or she would like to create this playlist, then the program should first ask for a name for the playlist and how many songs will be in the playlist. The user should be informed that playlist should have a minimum of 3 songs and a maximum of 10 songs. Next, the program will begin a loop...
PYTHON CODING
Create a program that prompts the user twice. The first prompt should ask for the user's most challenging course at Wilmington University. The second prompt should ask for the user's second most challenging course. The red boxes indicate the input from the user. Your program should respond with two copies of an enthusiastic comment about both courses. Be sure to include the input provided by the user to display the message. There are many ways to display a...
JAVA Write a program that prompts the user to enter a file name, then opens the file in text mode and reads it. The input files are assumed to be in CSV format. The input files contain a list of integers on each line separated by commas. The program should read each line, sort the numbers and print the comma separated list of integers on the console. Each sorted list of integers from the same line should be printed together...
Write a Java program for a fortune teller. The program should begin by asking the user to enter their name. Following that the program will display a greeting. Next, the program will ask the user to enter the month (a number 1-12) and day of the month (a number 1-13) they were born. Following that the program will display their zodiac sign. Next, the program will ask the user their favorites color (the only choices should be: red, green and...
This program will ask the user to enter a number of players, then ask the user for each player's name and score. Once all of the players have been entered, the program will display a bar chart with each of their scores scaled as a percentage of the maximum score entered. See below for details on exactly how this should work - an example transcript of how the program should work is shown below (remember that values entered by the...
JAVA HELP Create a small program where You ask the user The amount of money he/she wants to convert using GUI Pop up input (import javax.swing.JOptionPane;) The first pop up should ask the user to what currency he/she wants to convert, He needs to be able to click that option, The currency you should use are : Euros , Pesos , Yen , Pound , Ruble, Quetzal, Once the user Clicks the option It will ask The amount the user...
Introduction to Java programming You will create a secure password. Ask a user to enter first name and last name. (Allow for mixed case) Create a random integer from 10-99. Create the password string that consists of the upper case letter of the last letter of his/her first name, the random number, and the first three letters of his/her last name in lower case. Example someone with the name Rob Lee might have a password that looks like B56lee. Your...
MATLAB QUESTION
8) Create a program that first prompts the user to enter any two numbers. Then prompt the user again to input as many numbers as they choose. Stop the program by inputting-1. Then, display the largest number and second largest number in the command window once the user kills the program. The built-in max function cannot be used. The figure below is an example of what the command window should look like when the code is ran. First...
Create two java programs. The first will ask the user to enter three integers. Once the three integers are entered, ask the user to enter one of three functions. The “average” if they want the average of the three numbers entered, enter “min” if they want the minimum and “max” if they want the maximum. Display the answer. Ask the user if they want to calculate another function for the three numbers. If so, loop and ask what function they...