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: 2 years ago.

Category: Homework

Share this conversation

Customer:replied 2 years 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 ;; list-length : List -> Number ;; Returns the length of the given list ;; Examples: ;; (list-length empty) = 0 ;; (list-length (list 1st)) = 1 ;; (list-length (list sqrt 2) = 4 ;; (list-length (list sqrt 3) = 9 ;; (list-length (list sqrt 4) = 16 ;; (list-length (list sqrt 5) = 25 ;; (list-length (list sqrt 6) = 36 ;; (list-length (list sqrt 7) = 49 ;; (list-length (list sqrt 8) = 64 ;; (list-length (list sqrt 9) = 81 ;; (list-length (list sqrt 10) =100(define (list-length lst) (cond [(empty? lst) 0] [else (+ 1 (list-length (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.

can call me if you have more question on my other cell(###) ###-#### ***** am still trying other formulas as well.

Customer:replied 2 years ago.

These assignment for C# ***** java due today and racket was due last week

Customer:replied 2 years 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 6-100 ;; 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 6-100 ;; 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 (make-vector (add1 n) #t)) (for* ([i (in-range 2 (add1 n))] #:when (vector-ref primes i) [j (in-range (* i i) (add1 n) i)]) (vector-set! primes j #f)) (for/list ([n (in-range 2 (add1 n))] #:when (vector-ref primes n)) n)) (sieve 100)p try and create my own equation to run to get the answers I need