I don't know where to begin:
Lab 5
Write a program that will first fill two out of three parallel arrays (local to the main function)
with user-supplied data and then give users the choice to query the parallel arrays. The first
array is as follow:
char title[SIZE_ROW][SIZE_COL]={"Intro to Calculus", "C++
Programming", "Java Programming", "Intro to Psychology", "Intro
to Business"};
Call a function with the following prototype:
void getInput(char t[][SIZE_COL],char a[][SIZE_COL], double p[],
int size);
to fill in the other two local arrays, authors and price.
Next, give the user the choice of searching based on the title, the author, or the price. When the
user supplies one piece of data (for example: the author), find all matches and print the other two
pieces of data( for example: the title and price).
If the user chooses to search by title, call a function with the following prototype:
void searchTitle(char input[], char t[][SIZE_COL],char
a[][SIZE_COL], double p[], int size);
The functions searches the entire title array and each time it finds a match with input it
prints out the corresponding author and price. Use the following functions when searching by
author or price:
void searchAuthor(char input[], char t[][SIZE_COL],char
a[][SIZE_COL], double p[], int size);
void searchPrice(double price, char t[][SIZE_COL],char
a[][SIZE_COL], double p[], int size);
Example: