Concluído

Scheme functions.

1. Write a procedure , **arg-type** that returns a *symbol* indicating the type of its parameter. Types that the procedure must recognize along with the symbol (exactly as shown ) to return are:

number num

character char

string str

procedure proc

boolean bool

symbol sym

pair pair

null null

Anything else as an argument should return the symbol *unknown.*

2. Define the procedure **make-list** which takes a non-negative integer *n* and an object and returns a new list , *n* long, each element of which is the object. For example:

(make-list 0 "kiwi") => ()

(make-list 2 'x) => ( x x)

(make-list 7 '() ) => ( () () () () () () () )

## Deliverables

3. Write a procedure **mysubstr** that prompts for a string and two numbers. The procedure will echo all three values read from the input and then display the substring of the string starting at the first number (counting from zero) with a length of the second number. Note that this definition is slightly different than how the scheme function *substring* works. For example.

#;> (mysubstr)

Enter string: "lemon"

Enter start: 1

Enter length: 3

string = lemon

start = 1

length = 3

substring = emo

#:>

## Platform

I am using SISC (Secon Interpreter of Scheme Code) Version 1.8.7 which can be downloaded free from [url removed, login to view]

**_THE DUE DATE FOR THIS IS SUNDAY NIGHT (US MOUNTAIN TIME -7:00 GMT) FEBRUARY 22ND 04_**.

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Treinamento

Veja mais: substring c, substring 0 2, c substring, c string substring, mountain time gmt, gmt to mountain time, str, scheme, ProC, kiwi, bool, arg, string integer, interpreter|, functions net, null null object, substring using, substring, code interpreter, display parameter php

Acerca do Empregador:
( 27 comentários ) United States

ID do Projeto: #3105274

Concedido a:

stardust126

See private message.

$12 USD em 3 dias
(57 Comentários)
5.2

4 freelancers estão ofertando em média $19 para esse trabalho

senzaciosnegyes

See private message.

$25.5 USD in 3 dias
(104 Comentários)
4.9
richardbrisley

See private message.

$21.25 USD in 3 dias
(22 Comentários)
3.9
yevgenyt

See private message.

$17 USD in 3 dias
(9 Comentários)
2.6