Find Jobs
Hire Freelancers

scheme programming error checking

$2-8 USD / hour

Anulowano
Opublikowano prawie 11 lat temu

$2-8 USD / hour

I have attached the program. I partially misunderstood the assignment when I wrote the program, and now I cannot figure out how to correct the program. The program is a Scheme compiler that simplifies expressions according to the 20 rules given by the assignment. I have been running the program in DrRacket 5.3.3. Once loaded into DrRacket, the program works as follows: I enter the expression to be evaluated as a list: > (parse '(+ 2 3)) The program outputs the following: (+ 2 3) 5 This expression is simplified according to Rule 1, and in this case the program is functioning properly. The program functions properly for rules that only involve c, where c represents a constant which in this case is any integer. The program cannot correctly evaluate expressions which include a "t". The program should be able to evaluate expressions where t represents a variable or another s-expression. For example if I enter the following expression: (parse '(+ (+ 3 t) 2)) The program output should be: (+ (+ 3 2) t) (+ 5 t) Could you help me figure out how to correct this? I am sure that you have questions. Please let me know. Thank you. please download the file from the link below [login to view URL] pay 20$ for error checking the code
Identyfikator projektu: 4490009

Informację o projekcie

2 ofert
Zdalny projekt
Aktywny 11 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
2 freelancerzy składają oferty o średniej wysokości $10 USD/godz. dla tej pracy
Awatar Użytkownika
Hi! Indeed using rule (9) the answer is the one you have provided. How does respond the program for that example? Could you also please send me your script? Thanks, Anca
$12 USD w 3 dni
5,0 (110 opinii)
5,2
5,2

O kliencie

Flaga OMAN
Mutrah, Oman
4,9
359
Zweryfikowana metoda płatności
Członek od lis 17, 2009

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.