Write a program that implements a binary search tree in scheme programming language

Part I: General Information
All assignments are individual assignments unless it is notified otherwise.
All assignments must be submitted via Blackboard. No late submissions or e-mail submissions or hardcopies will be accepted.
Unlimited submission attempts will be allowed on Blackboard. Only the last attempt will be graded.
Work will be rejected with no credit if The work is late. The work is not submitted properly (Blurry, wrong files, crashed files, files that can’t open, etc.).  The work is a copy or partial copy of others’ work (such as work from another person or theInternet).
Students must turn in their original work. Any cheating violation will be reported to the college.Students can help others by sharing ideas and should not allow others to copy their work.
Documents to be submitted:o Scheme source file(s) with inline comments with file extension .rkt o Test case document with file extension .PDF
Students are required to submit a design, all the error-free source files with Javadoc style inline comments and supporting files. Lack of any of the required items or programs with errors will result in a low credit or no credit.

2
Part II: Grading Rubric
See the requirements in part III.
Part III: Description
Goals:
Review and develop a deep and comprehensive understanding of functional programming
Review and develop a deep and comprehensive understanding of the divide-and-conquer technique andprogramming technique such as recursion
Review and develop a deep and comprehensive understanding of data structures such as binary search treesInstructions:Please read the following requirements carefully. A program that doesn’t meet the following requirements may be returned with 0 points awarded.Use Scheme as a pure functional programming language.
The following basic functions are allowed to be used for this assignment.o PrimitiveNumericFunctions: ,−,*,/,QUOTIENT,andMODULO.o DefiningFunctions:LAMBDA, andDEFINE.o Numeric Predicate Functions: =, , >, = , <=, EVEN?, ODD?, and ZERO?. o Logical Operator Functions: AND, OR, and NOTo Control Flow Functions: IF, ELSE, and COND.o ListFunctions:CAR,CDR,CONS,LIST,andAPPEND.o PredicateFunctionsforSymbolicAtomsandLists:EQ?,EQV?,NULL?,andLIST?.o LETfunctions:LET
Use recursion, and not iteration.
Adequate comments must be provided for each logical block in a function for all functions in a program.
Adequate comments must be provided for the entire program.
Codes must be formatted properly using indentations to enhance readability.
The program must be tested completely.

o First,testeachfunctioncompletely.
 Choose two various test cases at least, explain how to arrive at the output.
 List the test cases and their results in comment format at the end of the program (for grading).
 Write the explanations in a separate document using the template provided. You must namethis document using the following naming convention: FirstNameLastNameBSTTestCases andsubmit a PDF for this document. A Word template is provided.
o Next,testtheentireprogrambyinvokingthefunctionsinlogicalorder.
 Choose two various test cases at least, explain how to arrive the output. List the test cases and their results in comment format at the end of the program (for grading).  Add the explanations to the above-mentioned document.
o Asmentionedintheprevioussteps,youmustincludethetestcasesandtheirresultsatthebottomof the program in comment format and complete the explanations in the test case document.
 A program without test cases included at the end of program or without test case explanation document will be returned with 0 points awarded.
 A submission of test case explanation document without the source codes will be returned with 0 points awarded.
Submit the program with file extension .rkt and the test case document as a PDF.
Write a program that implements a binary search tree (BST). Assume that a BST organizes integers and can’t contain duplicate values.
A binary search tree organizes its data by value. Each node n in a binary search tree satisfies the following properties:
n’s value is greater than all values in its left subtree TL.
n’s value is less than all values in its right subtree TR.
Both TL and TR are binary search trees.A non-empty binary search tree can be represented as a list of three elements – (a value, TL, TR). The first element is a node’s value(root), the second element is the node’s left subtree, and the third element is a node’s right subtree.n’s value
TL
TR
Non-empty left and right subtrees (TL, TR) are binary search trees that are lists of three elements. An empty tree is represented as an empty list. The following examples show the trees and their list representations. Notice that the list representations are shown as pseudo codes and may not be in correct Scheme syntax.
1
60 20
40
(60 (20 () (40 () ()) ) ())
(1 () ())
What is the list representation?
The following shows the specifications of BST briefly. When implementing a function, tree status and/or input validation must be checked as needed.Construct BST:
Return an empty BST.
Given an element, return a new BST contain a node containing the element.
Given an element, a left subtree, and a right subtree, return a new BST if the three elements are valid, falseotherwise.Access BST:Given a BST, return the root of the tree.
Given a BST, return the left subtree of the tree.
Given a BST, return the right subtree of the tree.

Check for Emptiness:
4
Given a BST, return true if the tree is empty, false otherwise. Search:
Given an element and a BST, return true if the element is in the tree, false otherwise. Insertion:
Given an element and a BST, if the element is already in the tree, return the tree. If the element isn’t already in the tree, return a new binary search tree with the element appearing in its proper location. The original tree can’t be changed.
BST Traversals:
Given a BST, return a list containing all values in the tree in the order they are visited in a preorder traversal.
Given a BST, return a list containing all values in the tree in the order they are visited in an inorder traversal.
Given a BST, return a list containing all values in the tree in the order they are visited in a postorder traversal.Test:
Test the design of the entire BST.
5

Computer network application—tic-tac-toe game

I want to do a tic-tac-toe game. It is a network application, that involves communication over a network. It is may build on my previous assignment(lab 6) which I will upload below. And I also will upload more detials of tic-tac-toe game below. Language is java and run it on Blue J.

A Simple MIPS QtSPIM question

Trace the following program by hand to determine the values of registers $f0 thru $f9. Notice that array1 and array2 have the same elements, but in a different order. Comment on the sums of array1 and array2 elements computed in registers $f4 and $f9, respectively. Now use the QTSPIM tool to trace the execution of the program and verify your results. What conclusion can be made from this exercise?
.data
array1:.float5.6e 20,-5.6e 20,1.2
array2:.float1.2,5.6e 20,-5.6e 20
.text
.globl main
main:
la$t0,array1
lwc1$f0,0($t0)
lwc1$f1,4($t0)
lwc1$f2,8($t0)
add.s$f3,$f0,$f1
add.s$f4,$f2,$f3
la$t1,array2
lwc1$f5,0($t1)
lwc1$f6,4($t1)
lwc1$f7,8($t1)
add.s$f8,$f5,$f6
add.s$f9,$f7,$f8
li $v0, 10# To terminate the program
syscall
.end main

2 Simple MIPS QtSPIM questions

Trace the following program by hand to determine the values of registers $f0 thru $f9. Notice that array1 and array2 have the same elements, but in a different order. Comment on the sums of array1 and array2 elements computed in registers $f4 and $f9, respectively. Now use the QTSPIM tool to trace the execution of the program and verify your results. What conclusion can be made from this exercise?
.data
array1:.float5.6e 20,-5.6e 20,1.2
array2:.float1.2,5.6e 20,-5.6e 20
.text
.globl main
main:
la$t0,array1
lwc1$f0,0($t0)
lwc1$f1,4($t0)
lwc1$f2,8($t0)
add.s$f3,$f0,$f1
add.s$f4,$f2,$f3
la$t1,array2
lwc1$f5,0($t1)
lwc1$f6,4($t1)
lwc1$f7,8($t1)
add.s$f8,$f5,$f6
add.s$f9,$f7,$f8
li $v0, 10# To terminate the program
syscall
.end main
————————————————————————————————————————————————————
Write an interactive program that inputs the coefficient of a quadratic equation, computes, and displays the roots of the quadratic equation. All input, computation, and output should be done using double-precision floating-point instructions and registers. The program should handle the case of complex roots and displays the results properly. search for the form of the quadratic equation in the search engine

Two simple MIPS QtSPIM questions

Trace the following program by hand to determine the values of registers $f0 thru $f9. Notice that array1 and array2 have the same elements, but in a different order. Comment on the sums of array1 and array2 elements computed in registers $f4 and $f9, respectively. Now use the QTSPIM tool to trace the execution of the program and verify your results. What conclusion can be made from this exercise?
.data
array1:.float5.6e 20,-5.6e 20,1.2
array2:.float1.2,5.6e 20,-5.6e 20
.text
.globl main
main:
la$t0,array1
lwc1$f0,0($t0)
lwc1$f1,4($t0)
lwc1$f2,8($t0)
add.s$f3,$f0,$f1
add.s$f4,$f2,$f3
la$t1,array2
lwc1$f5,0($t1)
lwc1$f6,4($t1)
lwc1$f7,8($t1)
add.s$f8,$f5,$f6
add.s$f9,$f7,$f8
li $v0, 10# To terminate the program
syscall
.end main
————————————————————————————————————————————————————
Write an interactive program that inputs the coefficient of a quadratic equation, computes, and displays the roots of the quadratic equation. All input, computation, and output should be done using double-precision floating-point instructions and registers. The program should handle the case of complex roots and displays the results properly. search for the form of the quadratic equation in the search engine

Introduction to Programming: answer the following questions

Task 3:
eXtra is a great Services providing different items to customer. Consider that a customer is
buying any four types of items from eXtra store, where each items has a fixed price on it. After choosing
the items, the customer has to go to the cashier and can ask any of the following services:
Please note that you have to choose the four items of your choice with some appropriate prices
available in the eXtra store.
1. Make a new purchase: The cashier enters the number of items for each type of items then the
program calculates the total price, apply a VAT of 5% and displays the total amount to pay the
customer.
2. Check the price of one item: The cashier enters the code of the item and the program displays
its price.
You are requested to write the Java program that completes the following:
a) Displays the menu of services as specified above and asks the user of his/her service choice.
b) Based on the customer choice, the program executes one of the tasks specified in the previous
list of services.
i. Make a new purchase.
ii. Check the price of one item
iii. Displays an error message if the choice is not one of the previous options.
Please note that you have to choose the four products available in the retail store with their prices.
Please find below some examples of execution: (Photos attached)
__________
Draw a Flow Chart for the senario given in task 3, the diagram must be drawn using suitalble software.

intro to programming: answer task 3 is done, I need help figuring our why I cant get the results, need task 4 answer

Task 3: (done already, photo attached, need help to find out where is exactly the problem)
eXtra is a great Services providing different items to customer. Consider that a customer is
buying any four types of items from eXtra store, where each items has a fixed price on it. After choosing
the items, the customer has to go to the cashier and can ask any of the following services:
Please note that you have to choose the four items of your choice with some appropriate prices
available in the eXtra store.
1. Make a new purchase: The cashier enters the number of items for each type of items then the
program calculates the total price, apply a VAT of 5% and displays the total amount to pay the
customer.
2. Check the price of one item: The cashier enters the code of the item and the program displays
its price.
You are requested to write the Java program that completes the following:
a) Displays the menu of services as specified above and asks the user of his/her service choice.
b) Based on the customer choice, the program executes one of the tasks specified in the previous
list of services.
i. Make a new purchase.
ii. Check the price of one item
iii. Displays an error message if the choice is not one of the previous options.
Please note that you have to choose the four products available in the retail store with their prices.
Please find below some examples of execution: (Photos attached ” black ones” )
__________
Draw a Flow Chart for the senario given in task 3, the diagram must be drawn using suitalble software.

c cuda code need to fix

Write a GPU kernel histogram () that scans all scores and update the histogram. The kernel should use a single histogram stored in the global memory for all threads.
Write a GPU kernel privatized_histogram() that creates a private histogram for each thread block in the shared memory and allows threads in each thread block to updated their private histogram. Once the thread block finish execution, the global histogram is updated.

Create a linux shell program

What to do
In this assignment you are to create a Linux shell program. A shell is simply a program that conveniently allows you to run other programs. Read up on your favorite shell to see what it does.
Details
Your shell must support the following:
The internal shell command “exit” which terminates the shell.Concepts: shell commands, exiting the shellSystem calls: exit()
A command with no argumentsExample: lsDetails: Your shell must block until the command completes and, if the return code is abnormal, print out a message to that effect.Concepts: Forking a child process, waiting for it to complete, synchronous executionSystem calls: fork(), execvp(), exit(), wait()
In essence, your solution must support the following:
Your solution must also support the following:
A command with argumentsExample: ls -lDetails: Argument 0 is the name of the commandConcepts: Command-line parameters
A command, with or without arguments, executed in the background using