Recent content by geforce
-
G
Comp Sci JAVA CODING - Implementing methods for a game, API
public static java.util.List<acm.graphics.GRect> createPlayfield() { Random r = new Random(); List<GRect> l = null; int x = 0; int y = ROWZERO - BLOCKHEIGHT; Color c = new Color(r.nextInt(256),r.nextInt(256),r.nextInt(256)); // Where to implement how to...- geforce
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
G
Comp Sci JAVA CODING - Implementing methods for a game, API
so... no one?- geforce
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
G
Comp Sci JAVA CODING - Implementing methods for a game, API
import acm.graphics.*; import acm.program.*; import java.awt.Color; import java.util.Iterator; import java.util.Random; import java.util.List; public class LAB1 { final static int BLOCKWIDTH = 50; final static int BLOCKHEIGHT = 10; final static int NBLOCKS = 10; final static...- geforce
- Thread
- Coding Game Java
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
G
Discrete Math Question ( not really homework) about strong induction
For some questions strong induction would test for cases n+1, n+2 and for other n+1,n+2,n+3, or other ways, why is that? Here's two examples Suppose that the only paper money consists of 3-dollar bills and 10-dollar bills. Find what dollar amounts can be made from a combination of these...- geforce
- Thread
- Discrete Discrete math Homework Induction
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
G
Discrete Math Logic Defineing a function recursion-ish
(3) Define a function A(m,n) as follows. A(0,n) = 2n for every n. A(m,0) = 0 for every m >= 1 A(m,n) = 2 if m >= 1 and n = 1 A(m,n) = A(m -1,A(m, n - 1)) otherwise (i.e., if m >= 1 and n >= 2. (b) Prove A(m,2) = 4 for every m >= 2 (c) Prove A(1, n) = 2^n for every n >= 1. Proving...- geforce
- Thread
- Discrete Discrete math Function Logic
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
G
Expected Value and Standard Deviation of A1 Computer's Rebate
A1 Computer has 15 tablets stocked, but four of them were actually defectives. A client bought two tablets from A1 Computer. If both of them are good, things are fine. If the client gets one defective machine, A1 Computer will replace it and give a $100 rebate to the client. If the clients...- geforce
- Thread
- Probability Statistics Statistics probability
- Replies: 2
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
B) What about: 25 - 12 = 13% Males under 18 years old 48 - 13 = 35% males OVER 18 years old 52 - 12 = 40% females under 18 years old 52 - 40 = 12% females OVER 18 years old SO, (52 - 40) + (48 - 35) = 25% females and under 18 years old. Thanks a lot for your help i REALLY appreciated it...- geforce
- Post #19
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
Oh right haha. So then B) Okay, since 25 - 12 = 13% males under 18 years old 48 - 13 = 35% Males OVER 18 : 35% 52 - 12 = 40 Females OVER 18: 40% So finally, 100 - 40 - 35 = 25% So, 25% are females and under 18 years old. C) Oh okay I see that still makes a lot of sense, 25 - 12 = 13%...- geforce
- Post #17
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
Hmm , I don't understand where did you make the typo that says 12% are females because 25% - 12% = 13%- geforce
- Post #15
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
I could use formulas as stated above, but how would I differentiate the Sex and Age as integers? The best way would be using venn diagrams for this kind of situation.- geforce
- Post #12
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
A) Since 52 - 12 = 40% which is 40% females that are over 18 years old. B) If 52 - 12 = 40% that means 40% females are over 18 years old. Then, 12% are females under 18 years old. C) Since we know 25 - 12 = 13% are females under 18 years old then 12% are males under 18 years old. So, 48 - 12 =...- geforce
- Post #11
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
Although I think I'm done I still think B) is wrong, anyone have an idea?- geforce
- Post #9
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
So for D) P(S l A) = P(`S) where `S means not S, to prove they are not indepedent. Since it's not easy to do through formula's the venn diagram helps by showing the intersection of the Sex(52%) and Age(Under 18 years old) So therefore, S intersect A is true so it's indepdent. And for E) Sex...- geforce
- Post #8
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
For D) I would use P(A l B ) = P(A) to prove if A and B are independent or the venn diagram and for E) I would prove if "S intersect A = 0 " or by ven diagram, two separate circles.- geforce
- Post #7
- Forum: Precalculus Mathematics Homework Help
-
G
Probability Statistics Question
A) So, 52% are females 100 - 52 = 48 % are males 48 - 25 - 12 = 11% are females and are over 18 years old. B) So for females its 52% and under 18 years old its 25% so it would be 77% that are females or under 18 years old. C) 100 - 52 = 48% male 52 - 25 - 12 = 15% are males who are over 18...- geforce
- Post #6
- Forum: Precalculus Mathematics Homework Help