subject
Engineering, 19.12.2019 03:31 emilaw3233

Write a program that does the following: main() calls a method to print a heading for a table. use a file called names. txt for the input. it contains up to 15 full names in the form "first last". main() calls a method to read the full names into an array. for each name in the array:  main() breaks up the name into first and last.  main() stores last in a new array.  main() sends the "first last" form to a method. the method returns the name (through a return statement) in the form "".  main() calls a method to print a row in the chart in the form "first last" "last, first" "" . for example: abe adams adams, abe main() calls a method to print the array of last names. main() asks the user to enter a last name and calls a method to determine if the last name is in the array. main() prints the result. main() calls bubblesort() to sort the array of last names in non-ascending order. main() calls the same method as above to print the array of last names, again. use three names of various lengths to test your program. run it again with 5 names of various lengths. run your program with one name that is in the list and one that is not. submit your 5 name input file, your program listing and the output that searched for a name that is not in the file. neither tracing nor handcheck is required.

ansver
Answers: 3

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 temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
You know the right answer?
Write a program that does the following: main() calls a method to print a heading for a table. use a...
Questions
question
Mathematics, 12.07.2019 01:10
question
Spanish, 12.07.2019 01:10
question
History, 12.07.2019 01:10
Questions on the website: 13722363