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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, volleyballfun24
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
image
Engineering, 03.07.2019 15:10, margaret1758
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
image
Engineering, 04.07.2019 18:10, bckyanne3
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
image
Engineering, 04.07.2019 18:10, wyattlb97
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
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 in other subjects:

Konu
Mathematics, 09.03.2021 20:50
Konu
Mathematics, 09.03.2021 20:50