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, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24Β°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26Β°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70Β°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
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
Questions on the website: 13722360