Hi I would like to make a simple query rewriting program with Java.
When I ask where question
so for example, where (is the Louvre Museum located?)
The answer would be the Louvre Museum is located in _____ like this
Just change and re-phrase the sentence or more phrase changes if you think it is easy
How can I make this simple code when users ask any where questions in prompt
Please help me it would be great help to study and understand code thanks!
import java.util.Scanner;
public class Answer {
static String question = " Louvre Museum is located ";
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("Where"+ question + " : ");
String answer = keyboard.nextLine();
System.out.println(question + " in "+ answer);
}
}
==================================
SEE OUTPUT

Thanks, PLEASE COMMENT if there is any concern.
Hi I would like to make a simple query rewriting program with Java. When I ask...
Java programming for ticket price calculator. It should ask the user if they would like to process another ticket order. They should indicate their selection with a Y or N. If they indicate yes, then it should repeat the entire program with the exception of the welcome screen. If they indicate no, it should show the final thank you message and end the program. If they indicate an invalid answer, it should display an error and re-prompt them for a Y...
Hi I need help creating a program in JAVA. This is material from chapter 9 Objects and Classes from the Intro to JAVA textbook. Mrs. Quackenbush's Rent-A-Wreck car rental ..... Mrs. Q asked you to create a program that can help her track her growing fleet of junkers. Of course she expects you to use your best programming skills, including: 1. Plan and design what attributes/actions an automobile in a rental fleet should have (example. Track number of Trucks, SUVs,...
JAVA Hi I would like assistance on this: One of the input is
below and I keep getting ASCENDING instead of UNSORTED:
11 2009 153333
3 ZIPS, What Order?: Write a program named ZipOrder that the reads in three zip codes from standard input and prints to standard output one of three words: "ASCENDING","DESCENDING","UNSORTED". The zip codes are guaranteed to be distinct from each other. In particular: if each zip code read in is greater than to the previous one,...
I need to make this into a Java Code: Write a Java program that asks the user for four words: word1 word2 word3 word4. Your prompts to the user must be: Enter 4 words: Output word1 and the length of word1 and the position of the character 'h' in word1 Output word2 and the length of word2 and the position of the character 'i' in word2 Output word3 and the length of word3 and the position of the substring "hi"...
HI I would like to ask how to write the function when my list is
[[1,2,4],[0,3,2]]. Like merging them. I managed to do it separately
only. The mean for [1,2,4] is 2.33 and so xbar return me
[-1.33,-0.33,1.67] (is like [1,2,4] minus the 2.33. I need help for
more lists. Thanks
>>> def mean(Ist): return sum(Ist)/len(Ist) >>> def xbar(data): i = 0 a = mean(data) for i in range(len(data)): data[i] -= a i += 1 return data >>> xbar([1,2,4]) [-1.3333333333333335,...
I am writing a Java program. My program would ask two questions: (1) 1+1=? (2) 2+1 =? Show one question at a time on the console. The program allows users to input answers via a command-line (no GUI). Give users five seconds to answer each question. The next question would show ONLY when the user answers the question correctly OR when the time is up. Once users answer the question correctly within the given time, the next question needs to...
Hi I need help with this. thank you!
When should the medical assistant make a personal telephone call if he or she is at work at a medical office? O Whenever there are a few free minutes. At any time when the physician is not in the office. During a scheduled break or lunch period. O When the medical assistant can be sure that someone is available to cover his or her duties. When placing a long-distance call to ask...
(I would like this to be in five parts.) Write a program (Python module) that includes a function named studentrecords. This function must support execution of two loops. The first loop is to query the user whether they wish to enter additional records or not. It must accept responses of either yes or no as input, regardless of the letter-cases used for individual letters in the response. If the response is not recognized ( it isn’t yes or no) it...
JAVA
Hello, I would like some help wiht this program, I'm not sure
hard to code the deep copy and array for MenuSchedule
Here is my code:
Chez Moraine, a fake restaurant known for fine dining at reasonable prices, has hired you to develop a program to manage their menu during peak times: Friday, Saturday, and Sunday nights Below is the UML diagram you will implement. You may also use my specs on the next page as your guide to...
Hi I would like to revise the codes below to bring all text files I have text file 0 from 10 I will give you link here https://drive.google.com/open?id=1LnWqv8ftzARx5Rhf7HtVlVkLVlcA1FtI when tokenizer read all tokens from the 10 files which attached above, I would like to arrange it in alphabetical order and want to make same word tokens being merged. For instance, You are my son? You are my son and good friend! you are the only one whom I loved. The...