Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 159
» Latest member: Tmgonsewski
» Forum threads: 187
» Forum posts: 694

Full Statistics

Online Users
There are currently 6 online users.
» 0 Member(s) | 6 Guest(s)

Latest Threads
-i -b number format
Forum: Project 1
Last Post: clalexander4
6 hours ago
» Replies: 1
» Views: 7
Time Testing
Forum: Project 0
Last Post: rcfrederick
8 hours ago
» Replies: 3
» Views: 105
CDA Test file
Forum: Project 0
Last Post: rcfrederick
9 hours ago
» Replies: 3
» Views: 89
undefined reference
Forum: Project 0
Last Post: alexbusol
9 hours ago
» Replies: 2
» Views: 19
How will real numbers be ...
Forum: Project 1
Last Post: aluong
9 hours ago
» Replies: 1
» Views: 63
Really struggling with 1 ...
Forum: Project 0
Last Post: alexbusol
10 hours ago
» Replies: 2
» Views: 21
What display/comparator f...
Forum: Project 1
Last Post: jaw653
Yesterday, 09:05 PM
» Replies: 0
» Views: 11
Resubmission question
Forum: Project 0
Last Post: thetrentford
Yesterday, 05:38 PM
» Replies: 1
» Views: 28
exam 1 postponed
Forum: Exam 1
Last Post: mkkeffeler
Yesterday, 05:12 PM
» Replies: 7
» Views: 455
Task 8 compare results
Forum: Assignment 1
Last Post: mkkeffeler
Yesterday, 05:10 PM
» Replies: 11
» Views: 487

 
  You can still submit...
Posted by: lusth - 09-09-2017, 11:01 PM - Forum: Assignment 1 - No Replies

...until I start grading.

Print this item

  submit
Posted by: dclark4 - 09-09-2017, 03:30 PM - Forum: Project 0 - Replies (2)

Followed commands exactly as written to download the submit program on a mac in terminal. After set email I typed in the cat .bashrc >> .bash_profile line and the terminal just responded permission denied. Also I was never prompted for a password, which I though was supposed to happen

Print this item

  head file
Posted by: ACCD - 09-09-2017, 10:35 AM - Forum: Project 0 - Replies (2)

Because it said:

"The only local includes that queue.c should have are queue.h and the header file of the underlying data structure on which the array is based." 

Does that I only can include queue.h in queue.c?  Can I include cda.h also?  
Because it says the only local include.


So for:

#include "integer.h"
#include "cda.h"
#include "queue.h"

Should be in the test-queue.c

And queue.c should only have
#include "queue.h"

Is that right?

Print this item

  Task 3 example
Posted by: djmurray - 09-09-2017, 01:04 AM - Forum: Assignment 1 - Replies (2)

From the assignment:

Code:
$ echo "(0.0 0.0 100)" > task3.args
$ scam -r task3.scm task3.args
100 0 0 0
$
  

But...

Quote:The call (mblue i t) should return 0 when i is 0, 255 when i is t-1 ...


Doesn't this mean we should get:
Code:
$ echo "(0.0 0.0 100)" > task3.args
$ scam -r task3.scm task3.args
100 0 0 255
$
**assuming rgb order

I could be way off base here...

Print this item

  Possible error in test0
Posted by: jaw653 - 09-08-2017, 10:13 PM - Forum: Project 0 - Replies (1)

Check out the following output. The line states that the program is to remove the tail item, but it clearly removes both the head and tail items.

displaying the two arrays...
(1,2,3,4,9,8,7,6,5)()
removing the tail item in the array...
displaying the array...
(2,3,4,9,8,7,6)

Print this item

  Display Stack and Queue
Posted by: sammaryland - 09-08-2017, 09:01 PM - Forum: Project 0 - Replies (4)

I am a bit confused on implementing our display functions for Stack and Queue. Since there are different symbols (i.e. "[ ]", "< >", "( )", "| |"), how do we call different functions to display the different outputs since we can't just call the displayDA function for Stack and displayCDA for Queue?

Thanks so much!

Print this item

  removeCDAback
Posted by: ACCD - 09-08-2017, 07:48 PM - Forum: Project 0 - Replies (1)

It says:
"


  • removeCDAfront - The size shall be greater than zero. 

  • removeCDAback - The size shall be greater than zero. 
"
So size mean how many item in the array.
Capacity mean the maximum number of items array can hold.

So my test output was like:


---remove-B----head---------------: 0.
---remove-B------------------tail---------------: 2.
---remove-B--Array size: 3.
---remove-B--Array capacity: 8.


*************capacity shrink to : 4


---remove-B----head---------------: 0.
---remove-B------------------tail---------------: 1.
---remove-B--Array size: 2.
---remove-B--Array capacity: 4.


*************capacity shrink to : 2


---remove-B----head---------------: 0.
---remove-B------------------tail---------------: 0.
---remove-B--Array size: 1.
---remove-B--Array capacity: 2.
Size was 1, can't remove.
Size was 1, can't remove.
Size was 1, can't remove.
Size was 1, can't remove.
(97)(1)



So I set two if statement for when size was one and capacity was one just return the last item and do not remove it.
Because it said size should be greater than zero which means minimum was one.

Was that correct?

Or the size can be zero, and array can be empty by remove function?

Print this item

  .git included in submission
Posted by: jaw653 - 09-08-2017, 04:55 PM - Forum: Project 0 - Replies (1)

I used git/github to keep my code safe while developing this project, and there are a couple hidden files in my directory that I will turn in (.git file, etc.). Will this pose any problems?

Print this item

Rainbow Getting garbage collection with iterative processes
Posted by: daweil - 09-08-2017, 03:57 AM - Forum: Assignment 1 - Replies (3)

With the following example code, I'm still getting garbage collection messages with large numbers:

Code:
(define (useless-counter i)
   (define (useless-iter total n)
      (if (<= n 0)
         total
         (useless-iter (+ total 1) (- n 1)))
      )
   )
   (useless-iter 0 i)
)

I'm not sure what is going on. I'm quite certain I have an iterative process, but have no idea as to why garbage collection is happening. Any thoughts / suggestion / help?

Print this item

  [setDA] When index equal to the size
Posted by: sbcarp - 09-08-2017, 12:30 AM - Forum: Project 0 - Replies (2)

Quote:setDA - The index shall be greater than or equal to zero and less than or equal to the size. 
Does this imply that when index equal to the size, perform insertDA then?

Print this item