Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using RAPTOR (installed from the \"Start Here!\" page), create a flowchart progr

ID: 3575993 • Letter: U

Question

Using RAPTOR (installed from the "Start Here!" page), create a flowchart program to solve the following problem. Attach your .rap file created when you save your flowchart. Use subroutines and functions with parameters and arguments. In RAPTOR, all data from a file must be loaded into an array to be manipulated. Be aware that RAPTOR processes each record in a data file as a complete entity; there is no way to distinguish one field from another. So, you must use a separate file for each field and keep the files parallel. Any manipulation that must be done (sorting, searching, and so on) must be done to the arrays in parallel and the files must be rewritten from the resulting arrays.

The Eversoft Eraser Company has a list of its customers’ names (not necessarily in alphabetical order) and telephone numbers in a file named "customer" with records of the following form:

last_name (String), first_name (String), phone_number (String)

a. Create 3 files to load into 3 arrays, one for each field in the "customer" file. Type at least 10 records into the files as test data. Name the files last_name.txt, first_name.txt, and phone_num.txt. Make sure that at least 2 of the last names are the same for testing purposes.

b. Load the files into parallel arrays and display the list of customers’ names and phone numbers in alphabetical order.

c. Allow the user to input a last name, then search the last_name.txt file and display all names and phone numbers corresponding to that last name.

Explanation / Answer

b)

Dim Cust_LstName(1 to 1000)
Dim Cust_Dmmy_Array(1 to 1000)
Dim Cust_FrtName(1 to 1000)
Dim Cust_Num(1 to 1000)

Do Until no more names in list = true
.... INCR x
..... Cust_LstName (x) = last_name_in_list
..... Dmmy_Array(x) = last_name_in_list
..... Cust_FrtName (x) = first_name_in_list
..... Cust_Num (x) = number_in_list
LOOP

Array Sort Cust_LstName (), tagarray Cust_FrtName

Array Sort Dmmy_Array(), tagarray Cust_Num ()

c)

Accept input (lst name) from user
Do Until no extra names in list = true
..... if user_lst_name equals lst_name_in_list then
.......... display names, phone number
.... end if
loop

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote