![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.04.2021 03:10 wolfking800
1. Define a procedure (Divide x y) that takes two parameters x and y and returns the division result x/y. Then, call your procedure using
Test case:
> (Divide 10 3)
3 1/3
2. Define a recursive procedure called (nDivide x y n) with three parameters x, y and n. It returns the result of x divided by y n times: x/y/y/.../y. Instead of using "[", you must use the Divide function that you developed in the previous question.
Test case:
> (nDivide 10 3 4)
10/81
3. Define a procedure (Dividen Divide u vxy n) that will computes the division result of two nDivide procedures: (n Divide u v n) and (nDivide x y n). You must call Divide procedure and procedure that you have defined in questions 2 and 3.
Test case:
> (Dividen Divide 64 2 10 3 4)
32 5/6
4. Re-implement the procedure Dividen Divide and name it (Dividen DivideLet u vxy n). In this question, you must use let-form to redefine the global procedures that you used in the previous questions. More specifically, you will use let-form to redefine Divide and nDivide as unnamed procedures and use them in the Dividen DivideLet procedure. Hint: Follow the car ABS and Traction control example given in the lecture.
Test case:
> (Dividen DivideLet 64 2 10 3 4)
32 2/5
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:20
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
1. Define a procedure (Divide x y) that takes two parameters x and y and returns the division result...
Questions
![question](/tpl/images/cats/mir.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 20.07.2019 17:30
![question](/tpl/images/cats/mat.png)
Mathematics, 20.07.2019 17:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 20.07.2019 17:30
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.07.2019 17:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 20.07.2019 17:30
![question](/tpl/images/cats/en.png)
English, 20.07.2019 17:30
![question](/tpl/images/cats/health.png)
Health, 20.07.2019 17:30
![question](/tpl/images/cats/mat.png)
Mathematics, 20.07.2019 17:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 20.07.2019 17:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 20.07.2019 17:30