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.
tribbl...docx
simila...docx
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
Are you available for help on this program again??? I am not
2/25/2017
2/25/2017
LogicPro
Questions1. The process of random sampling guarantees that
2/22/2017
2/23/2017
GLENN
I need the following Questions below answered before Ten
2/21/2017
2/21/2017
GLENN
I am currently taking an online paralegal certification
2/20/2017
2/22/2017
Donna Kakonge
Debbie owned and operated a party supply compa ny called
2/20/2017
2/20/2017
Donna Kakonge
Statistic 1. Review the levels of measurement terms in the
2/17/2017
2/19/2017
GLENN
Managerial Accounting Help!! This project is over job order
2/17/2017
2/17/2017
F. Naz
I have a similar question for stats just like this and I'm
2/16/2017
2/16/2017
GLENN
How do I Create a GUI application named
2/16/2017
2/17/2017
LogicPro
I am not sure if there is a macro or another approach
2/15/2017
2/15/2017
GLENN
X
Ask a Tutor
Get a Professional Answer. 100% Satisfaction Guaranteed.
18 Tutors are Online Now
Type Your Homework Question Here...
characters left: