Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a UML for the class below and write a driver for this class ( Include the driver in your UML ) *1 public class

Create a UML for the class below and write a driver for this class ( Include the driver in your UML )

image text in transcribed

*1 public class YourName { [/Fields for my class private java.lang.String welcome; private java.lang.String thankYou; /** * No arg constructor * @param welc The Welcome string (default: "Welcome") * @param bye The Thank You string (default: "Thank You") */ public YourName({ welcome="Welcome"; thankYou="Thank You"; } /** * Constructor with custom welcome and thank you messages * @param welc The Welcome string * @param bye The Thank You string public YourName(java.lang.String welc java.lang.String bye X welcome=welc; thankYou=bye; } /** * This method displays the wecome message with customer name * @param name The name of the customer that I'm greeting */ public void welcome java.lang.String name) I/Welcome the user to your program java.lang.System.out.print("******* ***** "); java.lang.System.out.print(" "+welcome+""+name+" to the Computer Genious Inc. "); java.lang.System.out.print(" We hope you'll enjoy the experience "); java.lang.System.out.print("*** *********** "); *** } * This method will thank the customer by name and tries to help them go to my website * @param name The name of the customer */ public void thankYou(java.lang.String name) // Thank the the user for using your program and invite him/her back again java.lang.System.out.printf("****** *********** "); java.lang.System.out.printf(" "+thankYou+""+name+" for using our program "); java.lang.System.out.printf(" Hope to see you again "); java.lang.System.out.print(" "+name+", please, visit us @ www.abc.com "); java.lang.System.out.println(" *******"); } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago