subject

Given array : string names[10]; and text file “data. txt”. write a program to do the following

a. copy data from the file into array names

calling statement: copydata(“data. txt”, names);

b. display array names

calling statement: displaynames( names );

c. sort array names using the “sort” member of library

calling statement: sort(names, names+10);

d. display the sorted form of array names

calling statement: displaynames (names );

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:50
Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
You know the right answer?
Given array : string names[10]; and text file “data. txt”. write a program to do the following
Questions
question
Mathematics, 12.03.2020 23:36
Questions on the website: 13722367