Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Writing on Haskell please Write a program that will: a. Read the comma separated file (specified by a command line argument) and produce a list

Writing on Haskell please

Write a program that will:

a. Read the comma separated file (specified by a command line argument) and produce a list of students.

b.Construct a binary search tree using the tree nodes you created, according to the ages of students.

c. Write a function that will search through the tree to see if it contains a student of age x. It returns true if there is, otherwise it returns false.

d. Write a function that takes a string for last name uses depth-first search to find if a student with that name is in the tree.

How the program needs to work:

When a user first calls it, she passes in the name of the csv file as an argument.

Then, a user can call the program and pass in a function (either search-age or search-name) and a value (a number or a last name). The program prints True or False.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions