Engineering
Engineering, 21.02.2020 20:20, neariah24

Artificial Intelligence elements in programming. Creating different outputs based on user input.

Ask a series of questions and based on the answer, create an adventure or story.

Welcome the use and let them know what is about to happen.
Use JOptionPane for input and output.
Use String. format() for the output.
Ask the user a series of questions. 10-15 questions with each answer being able to generate 1-3 sentences will build a nice size story.
Build a story for that user to read.
The story should be different based on the answers For example if the computer asks "How are you today?" the story takes a different turn for "Happy" that it would for "SAD"
Allow the user to do the story again without leaving the program. They should get different results with different answers.
Look at giving one or two answers with randomized results. (the same answer gets a different result)
Print the story for the user to see.
When they are ready to leave, thank the user for using the program.
The learning goal for this exercise is to use switch statements and loops to create a user input generated story.

Use at least one loop and three switch statements. You will likely need more. Some decisions can be satisfied with IF statements.
Use the java command to evaluate the results of your code.
IN JAVA

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, danksans7011
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
image
Engineering, 04.07.2019 18:10, colin774
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, juansoto227711
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
image
Engineering, 04.07.2019 19:10, pedropaulofpedrosapp
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg. m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 3
Do you know the correct answer?
Artificial Intelligence elements in programming. Creating different outputs based on user input.

Questions in other subjects:

Konu
History, 26.01.2020 08:31
Konu
Mathematics, 26.01.2020 08:31