Login

Contact Us
Homework
Homework Questions? Ask a Tutor for Answers ASAP
Not a Homework Question?
How JustAnswer Works:
Ask an Expert
Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
Get a Professional Answer
Via email, text message, or notification as you wait on our site.
Ask follow up questions if you need to.
100% Satisfaction Guarantee
Rate the answer you receive.
Ask Scott Your Own Question
Scott
,
MIT Graduate
Category:
Homework
Satisfied Customers:
3040
Experience:
MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
How to write tribbles problems in racket, java c# ***** the joejb
Customer Question
how to write tribbles problems in racket, java c# ***** the joejb problem need help. I did one for tribbles and I am not sure it is what they where asking for but produced the answers
Submitted:
1 year ago.
Category:
Homework
Share this conversation
Customer:
replied 1 year ago.
Here are the questions needs answeredLieutenant Uhura is visiting the space station K7 from the USS Enterprise. While there, she meets a man named Cyrano Jones who sells her a pet: a ball of fur called a Tribble. Doctor McCoy later examines the Tribble and makes the following observations:Tribbles are born pregnant and reproduce asexually.
Tribbles never die except by poisoning.
After twelve hours of life—and every twelve hours thereafter—a Tribble will give birth to a litter of ten baby Tribbles.Assuming the Tribble that Lieutenant Uhura purchased was a newborn and it was the only one brought back from the space station, after three Earth days, how many Tribbles will there be on the Enterprise? After four days? Your program should be able to predict the number of Tribbles after any length of time (in hours).Examples:
(tribbles 0) ==> 0 # ***** original Tribble
(tribbles 12) ==> 11 # ***** original Tribble and its 10 offspring
(tribbles 24) ==> 121
(tribbles 36) ==> 1331
(tribbles 48) ==> 14641
(tribbles 60) ==> 161051Write a program to solve the following puzzle:Dr. Z, the ruler of the ancient kingdom of Joejb, has her political foes locked up in individual cells in her dungeon. There are a total of 100 cells. On their Independence Day as all the Joejbians were celebrating, Dr. Z decided to release some of her political prisoners. But being the maverick she is, she does the following:She goes to the first cell and opens it, she goes to 2nd and opens, and she continues to open the 3rd, 4th ... all the way to the 100th cell.
She then comes back to the 2nd cell and closes it. She closes the 4th and in steps of 2 she closes the 6th, 8th ... 98th and 100th cells.
She then comes to the 3rd cell and this time in steps of 3 she visits each cell (3rd, 6th, 9th ...) and if the cell is open she closes it and if it’s closed, she opens it.
She repeats this process of opening closed cells and closing open cells in steps of 4, 5 ... all the way up to a step of 100.
In the end she decrees that all the prisoners in the cells that remain open are free to go.Who are those lucky prisoners (i.e., what are their cell numbers)?
in racket so far for the Joejb what I ;; listlength : List > Number
;; Returns the length of the given list
;; Examples:
;; (listlength empty) = 0
;; (listlength (list 1st)) = 1
;; (listlength (list sqrt 2) = 4
;; (listlength (list sqrt 3) = 9
;; (listlength (list sqrt 4) = 16
;; (listlength (list sqrt 5) = 25
;; (listlength (list sqrt 6) = 36
;; (listlength (list sqrt 7) = 49
;; (listlength (list sqrt 8) = 64
;; (listlength (list sqrt 9) = 81
;; (listlength (list sqrt 10) =100(define (listlength lst)
(cond
[(empty? lst) 0]
[else (+ 1 (listlength (rest 1)))]))
have is thisattached is similar puzzle on difference is Dr Z in Joejb is releasing prisoners same type of pattern. I am using for an example on how to write program for prisoner released. Need both tribbles and Joejb problems written in racket/scheme, C# ***** java.
Customer:
replied 1 year ago.
can call me if you have more question on my other cell(###) ####### ***** am still trying other formulas as well.
Customer:
replied 1 year ago.
These assignment for C# ***** java due today and racket was due last week
Customer:
replied 1 year ago.
here is another example trying to take the information from the prime formula to produce what I need because it does run and produce part of my answers. Again I am only using to hel;; Prisoners : number > number
;; On Independence day Dr. Z has releases some political prisoners locked up in individual cells
;; in her dungeon.
;; there 100 cells in total.
;; She opens up first cell close all even number cells from 2...100
;; Then she goes back to 3rd cell and each cell odd number 6100
;; If cell is opens she closes it and if close she opens it repeating same steps,
;; 4, 5, all the way up to step 100.
;; In the end an odd number of cells that weere visited was left open and a prisoner released.
;; EXAMPLE;; On Independence day Dr. Z has releases some political prisoners locked up in individual cells ;; in her dungeon.
;; there100 cells in total.
;; She opens up first cell close all even number cells from 2…100
;; Then she goes back to 3rd cell and each cell odd number 6100
;; If cell is opens she closes it and if close she opens it repeating same steps,
;; 4, 5, all way up to step 100.
;; In the end an odd number cell that was visited will be left open and a prisoner released.
;; The “value of prisoner cell 1 left open is 1”
;; The “value of prisoner cell 3 left open is 4 (*2 2)”
;; The “value of prisoner cell 5 left open is 9 (* 3 3)”
;; The “value of prisoner cell 7 left open is 16 (* 4 4)”
;; The “value of prisoner cell 11 left open is 25 (* 5 5)”
;; The “value of prisoner cell 13 left open is 36 (* 6 6)”
;; The “value of prisoner cell 15 left open is 49 (* 7 7)”
;; The “value of prisoner cell 17 left open is 64 (* 8 8)”
;; The “value of prisoner cell 19 left open is 81 (* 9 9)”
;; The “value of prisoner cell 21 left open is 100(* 10 10)”
(define (cells c))
(*(/(sq(define(prisoners cell p)
(+((extract 100))))(define (odd numbers)
(+( (odd 100))))(define (even numbers)
(+( (even 100))))
(define (cells c)
(+((even 100)
(odd 100))))
(define (extract e)
(+ (odd 100)))(define (sieve n)
(define primes (makevector (add1 n) #t))
(for* ([i (inrange 2 (add1 n))]
#:when (vectorref primes i)
[j (inrange (* i i) (add1 n) i)])
(vectorset! primes j #f))
(for/list ([n (inrange 2 (add1 n))]
#:when (vectorref primes n))
n))
(sieve 100)p try and create my own equation to run to get the answers I need
Expert:
Mr. Gregory White
replied 1 year ago.
Hello, my name is Greg.
I see this might be time sensitive.
Do you still need this answered?
Ask Your Own Homework Question
Share this conversation
Related Homework Questions
Question
Date Submitted
Qualitative methods, linear programming
12/5/2016
12/5/2016
GLENN
Instructions: The following programming problem can be
12/4/2016
12/5/2016
LogicPro
I need to know the formulas for the following CK metrics:
12/3/2016
12/3/2016
F. Naz
I have a problem involving qbasic64, qbasic 64, Im working
12/2/2016
12/4/2016
Ingo U
Here are the questions it's a college physics, basic ones
12/2/2016
12/2/2016
GLENN
How is math used in the game of football
12/1/2016
12/4/2016
Donna Kakonge
NOT GLENN NOR F. NAZ PLEASE Does speed = weight of an object
12/1/2016
12/1/2016
akch2002
Elevating an injured body part above the heart for the first
11/29/2016
11/29/2016
Cher
Using the IP number & Mask is 15.9.2.0/23. Please find the
11/28/2016
12/1/2016
David L.
I need help with xml homework
11/26/2016
11/26/2016
LogicPro
X
Ask a Tutor
Get a Professional Answer. 100% Satisfaction Guaranteed.
15 Tutors are Online Now
Type Your Homework Question Here...
characters left: