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 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
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
question
Engineering, 04.07.2019 19:20
Consider airflow over a flat plate of length l = 1.5 m under conditions for which transition occurs at le = 0.9 m based on the critical reynolds number, re,e = 5 x 10. evaluating the thermophysical properties of air at 400 k, determine the air velocity. (hint: use the tables to find the properties of air)
Answers: 3
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
Mathematics, 19.02.2021 04:50
question
Mathematics, 19.02.2021 04:50
question
Mathematics, 19.02.2021 04:50
question
Spanish, 19.02.2021 04:50
Questions on the website: 13722362