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
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 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
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
question
Social Studies, 13.04.2021 16:00
question
Mathematics, 13.04.2021 16:00
Questions on the website: 13722363