1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
madreJ [45]
4 years ago
3

Create a class named FormLetterWriter that includes two overloaded methods named displaySalutation(). The first method takes one

String parameter that represents a customer's last name, it displays the salutation "Dear Mr. or Ms." followed by the last name. The second method accepts two String parameters that represent a first and last name, and it displays the greeting "Dear" followed by the first name, a space, and the last name. After each salutation, display the rest of a short business letter: "Thank you for your recent order." Write a main() method that tests each overloaded method. Save the file as FormLetterWriter.java.

Computers and Technology
1 answer:
Oliga [24]4 years ago
6 0

Answer:

Follows are the code to this question:

public class FormLetterWriter//defining class

{

static void displaySalutation(String last_Name)//defining a method displaySalutation  

   {

       System.out.println("Dear Mr. or Ms. " + last_Name);//print value

   }

   static void displaySalutation(String first_Name, String last_Name) //overload the method displaySalutation

   {

       System.out.println("Dear " + first_Name + " " + last_Name);//print value

   }

   public static void message()//defining a method message  

   {

       System.out.println("Thank you for your recent order.");//print message

   }

   public static void main(String[] args) //defining main method

   {

       displaySalutation("I Kell");//calling a method displaySalutation by passing a single String value

       message();//calling message method

       displaySalutation("Christ", "John");//calling a method displaySalutation by passing a two String value

       message();//calling message method

   }

}

Output:

please find the attached file.

Explanation:

In the above given program a calss "FormLetterWriter" is defined, in side the class we perform the method overloading, in which a method "displaySalutation" is used in first definition it accepts a single string variable "first_Name", and in second time, it accept two string variable " first_Name and last_Name".

Inside the both method, we use print method, that print its value, and an onther method message is defined, that print the given message.

In the class main method is declared, in which we apply mathod overloading and also call the message method for print the given business letter.  

You might be interested in
Help me ASAP! Please and thank you :)
KengaRu [80]

step 1: b

step 2: c

step 3: a

step 4: d

6 0
3 years ago
The benefit of host and guest operating system difference is:
Mazyrski [523]
B bc i said sooooooooo
5 0
3 years ago
Read 2 more answers
What allows a user to interact with the on-screen features of a software application?
svet-max [94.6K]

A Flash video production tool that enables users to make interesting and interactive videos.

<h3>What characteristics does application software have?</h3>

A cloud-based digital adoption platform called the On-screen lets customers execute any activity on SAP ECC, S4HANA, or a variety of other corporate systems like Salesforce, Dynamics, Ariba, Workday, Success factors, Oracle, and even custom apps by providing step-by-step walkthroughs.

Application software has a number of important features, including:

  • High-level programming language used to write the document.
  • Simple to design.
  • more conversational.
  • larger in scale.
  • performs specialized activities including text processing and photo editing.
  • due to its size, extra storage space is required.

To learn more about software, refer to:

brainly.com/question/1538272

#SPJ4

8 0
2 years ago
Is it possible for two different passwords to ""unlock"" the same user account? Explain your answer.
tresset_1 [31]

Answer:

yes but only if you have a backup password

4 0
4 years ago
Do you think computers are smart machines?​
LekaFEV [45]

Answer:

sort answer yes

Explanation:

computer are smart machines help us do good things helping humans communicate and help spread information that can help impact a work. Computers can even have more information than us which is really crazy even tho we created computers

idk if that helps

8 0
4 years ago
Other questions:
  • Edhesive 4.1 question 1
    9·1 answer
  • Dose the internet bring people together?
    15·1 answer
  • What is white noise and how does it affect a signal? Provide a business process example that could be affected and what would yo
    5·1 answer
  • Which best describes the Help feature of Word?
    13·2 answers
  • A security policy is a?
    11·2 answers
  • What is a contact list?
    8·2 answers
  • The names of the governing body or organizationds that creates rules for information technology and information communication te
    9·1 answer
  • Naynar kis dhrm se sambandhit hai​
    15·2 answers
  • (Synchronized threads) Write a program that launches 1000 threads. Each thread adds a random integer (ranging from 1 to 3, inclu
    5·1 answer
  • List and describe the five moral dimensions that are involved in political, social, and ethical issues. Which do you think will
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!