subject
Engineering, 23.10.2019 23:00 kyle696969

1. create a class called name that represents a person's name. the class should have fields named firstname representing the person's first name, lastname representing their last name, and middleinitial representing their middle initial (a single character). your class should contain only fields for now.

2. add two new methods to the name class:

public string getnormalorder()
returns the person's name in normal order, with the first name followed by the middle initial and last name. for example, if the first name is "john", the middle initial is 'q', and the last name is "public", this method returns "john q. public".

public string getreverseorder()
returns the person's name in reverse order, with the last name preceding the first name and middle initial. for example, if the first name is "john", the middle initial is 'q', and the last name is "public", this method returns "public, john q.".

(you don't need to write the class header or declare the fields; assume that this is already done for you. just write your two methods' complete code in the box provided.)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
You know the right answer?
1. create a class called name that represents a person's name. the class should have fields named fi...
Questions
question
Computers and Technology, 27.07.2021 14:00
question
Biology, 27.07.2021 14:00
question
Mathematics, 27.07.2021 14:00
question
Biology, 27.07.2021 14:00
question
Biology, 27.07.2021 14:00
question
Mathematics, 27.07.2021 14:00
question
Mathematics, 27.07.2021 14:00
question
Mathematics, 27.07.2021 14:00
Questions on the website: 13722363