subject

Exercise 2.4.8: Greetings and Salutations5 points Write a class called Salutations that prints various greetings and salutations.

The class should have one instance variable, a String called name to represent the person to whom the salutations are directed.

The class should have the following methods

A constructor that takes a String to initialize name with
public void addressLetter()
public void signLetter()
public void addressMemo()
public void signMemo()

addressLetter should print “Dear name“, where name is replaced by the value of the instance variable name
signLetter() should print
”Sincerely,
name”
where name is replaced by the value of the instance variable name
addressMemo should print “To whom it may concern”
signMemo should print
”Best,
name
where name is replaced by the value of the instance variable name

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
Exercise 2.4.8: Greetings and Salutations5 points Write a class called Salutations that prints vari...
Questions
question
Mathematics, 16.09.2019 03:10
Questions on the website: 13722363