Computers and Technology

2.7.9: Quote Machine Save
Submit + Continue
1 import java. util. Scanner;
2
3 public class QuoteMachine
5
6
public static void main(String[] args)
{
Scanner input = new Scanner(System. in);
8
9
// Ask for a quote
// Ask for the author
1
// Create a new String that has the quote in quotation marks
// Don't forget to escape the quotation marks
// Print the quote, then the author on the next line
// But you can only use ONE print statement!
System. out. println("Enter a quote: ");
String quote = "\nEnter the author of the quote: ";
quote += "\n" + "Oh the places you'll g9":
System. out. println("Enter the author of the quote: ");
String author = "\nDr. Seuss";
17
18
19
20
21
22
23
24
25
26
27
28
29

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:30, DivineMemes420
What type of computer network ensures high security ?
Answers: 1
image
Computers and Technology, 22.06.2019 09:00, jgrable5175
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, patience233
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, teamroper35
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
Do you know the correct answer?
2.7.9: Quote Machine Save
Submit + Continue
1 import java. util. Scanner;
2
...

Questions in other subjects: