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, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
You know the right answer?
Exercise 2.4.8: Greetings and Salutations5 points Write a class called Salutations that prints vari...
Questions
question
Mathematics, 27.03.2020 03:46
question
Mathematics, 27.03.2020 03:46
question
Mathematics, 27.03.2020 03:47
question
Mathematics, 27.03.2020 03:47
question
Mathematics, 27.03.2020 03:47
Questions on the website: 13722362