subject

Write a program that has an array of at least 50 string objects that hold people’s names and phone numbers. the program then reads lines of text from a file named phonebook into the array. the program should ask the user to enter a name or partial name to search for in the array. all entries in the array that match the string entered should be displayed-- thus there may be more than one entry displayed. prompts and output labels. the program prints the message "enter a name or partial name to search for: " and then after the user enters a some input and hits return, the program skips a line, and prints the heading: "here are the results of the search: ", followed by each matched string in the array on a line by itself.
a. input validation.
b. none.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Looking at the electroscope, describe how you can cause the two leaves at the bottom to repel each other and stay that way
Answers: 3
You know the right answer?
Write a program that has an array of at least 50 string objects that hold people’s names and phone n...
Questions
question
Mathematics, 13.10.2020 05:01
question
Mathematics, 13.10.2020 05:01
Questions on the website: 13722361