subject
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

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:20
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
You know the right answer?
Artificial Intelligence elements in programming. Creating different outputs based on user input.
Questions
question
Mathematics, 01.05.2021 23:10
question
Mathematics, 01.05.2021 23:10
question
Mathematics, 01.05.2021 23:10
question
Mathematics, 01.05.2021 23:10