Official Homework Help Topic |
Official Homework Help Topic |
Sep 11 2009, 02:10 AM
Post
#41
|
|
Member Group: Veterans Joined: 13-August 09 |
(IMG:http://www.dailycognition.com/content/image/15/99692_10.jpg)
Vulcanized rubber is a very menacing thing. D: My math teacher thought it would be funny to give us a bunch of logic problems for the first week.... >_> Luckily its the same sheet as 3 years ago :3 |
|
|
Sep 11 2009, 02:11 AM
Post
#42
|
|
irgendwie, irgendwo, irgendwann Group: Veterans Joined: 6-July 08 |
Vulcanized rubber = tires, bottoms of shoes, and hockey pucks. I can find you a picture of a tire if you need one.
|
|
|
Sep 11 2009, 02:15 AM
Post
#43
|
|
--valiant|| Group: Katie Joined: 7-March 07 |
Ahhh, okay. That makes a lot more sense. It sounds a lot more complicated by its name than it is, then. Suuupear. Thanks, guys. And nah, I can draw one. I just expected it to be some crazy weird thing that is hard to explain. BD
|
|
|
Sep 11 2009, 02:16 AM
Post
#44
|
|
irgendwie, irgendwo, irgendwann Group: Veterans Joined: 6-July 08 |
My offer still stands.
|
|
|
Sep 11 2009, 02:21 AM
Post
#45
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
There's two solutions for the problem (at least). It all depends on if you're asking the user for a number and then retrieving it through cin, gets, getline, or anything similar to those. Or are you passing an int into a function?
Assuming you've just learned cin -- such a downer, I wanted to teach you math -- you'd just traverse each character of the array and check against the value at index 0. If they all match then you're good to go. |
|
|
Sep 11 2009, 02:28 AM
Post
#46
|
|
Member Group: Members Joined: 5-September 09 |
hm, our lecturer hasnt taught us any of those functions(cin, gets, getline, ...) before.
So I guess we have to keep the things simple and basic, like comparing each of the digits |
|
|
Sep 11 2009, 02:29 AM
Post
#47
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
So you haven't learned how to retrieve user input then? Ah, okay. So are you expected to just create a function which takes in an int? Then we can do some math :]
|
|
|
Sep 11 2009, 02:49 AM
Post
#48
|
|
Member Group: Members Joined: 5-September 09 |
Yep, we havent learned that..
Please guide me Saffy-sensei :3 I have to pass this subject no matter what it takes |
|
|
Sep 11 2009, 02:51 AM
Post
#49
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
Well, what do you know so far? I'm not entirely sure how I can help you quite yet.
|
|
|
Sep 11 2009, 03:16 AM
Post
#50
|
|
ADDUURRRRSTRATOR Group: Mayor Joined: 13-January 07 |
|
|
|
Sep 11 2009, 11:18 AM
Post
#51
|
|
Member Group: Members Joined: 5-September 09 |
@Jason
Just call me Rui :D Yea, I think the result should be something like that..! You're awesome..! Thank you for the help..could you show me the codings? :3 |
|
|
Sep 11 2009, 12:59 PM
Post
#52
|
|
ADDUURRRRSTRATOR Group: Mayor Joined: 13-January 07 |
I can't just give you the code, but I will try to help you out.
Look into the "cin >>" method for assigning each character entered to a separate variable. Then you check each character variable to see if they all match each other. That's basically it, along with "cout <<" to make it look pretty.
MOD:: Fixed the arrows
|
|
|
Sep 11 2009, 11:55 PM
Post
#53
|
|
Because I said so. Group: Chicken Joined: 8-March 07 |
Just so you know, I'm going to post a practice ACT essay up here, and I want you guys to see what you think it rate, assuming I give you the rubric. But, first I have to complete the essay.
|
|
|
Sep 11 2009, 11:58 PM
Post
#54
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
Jason, you're failing with those arrows. Other way around.
|
|
|
Sep 12 2009, 06:39 PM
Post
#55
|
|
Because I said so. Group: Chicken Joined: 8-March 07 |
l1/4-5l =8
I get this part: 1/4x-5= 8 1/4x-5 = -8 +5 +5 +5 +5 1/4x=13 1/4 = =-3 But...then what? Fractions are baffling to me. :/ |
|
|
Sep 12 2009, 06:43 PM
Post
#56
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
You're going to have to redo and clarify your math. I have no idea what you're trying to do.
|
|
|
Sep 12 2009, 06:46 PM
Post
#57
|
|
Because I said so. Group: Chicken Joined: 8-March 07 |
It's solving an absolute value equation. I get most of it, but not all. Now do you understand?
l1/4x-5l= 8 |
|
|
Sep 12 2009, 06:50 PM
Post
#58
|
|
ADDUURRRRSTRATOR Group: Mayor Joined: 13-January 07 |
You can't bring over the abs, but you can with the 5...I think...so it's 1/4x = 13. But I'm most likely wrong, so don't take my math for it.
|
|
|
Sep 12 2009, 06:53 PM
Post
#59
|
|
Because I said so. Group: Chicken Joined: 8-March 07 |
It's a dual equation problem. :/
I guess I should just ask, how do you divide 13 over 1/4x and -3 over 1/4x? It's not the problem itself. I just don't speak fraction. |
|
|
Sep 12 2009, 06:59 PM
Post
#60
|
|
It's your world now. Group: Veterans Joined: 13-January 07 |
Well, for one I don't believe you can just remove the absolute value indicators as you did. You seemed to have to just used it to invert 8 into -8 which from what i recall is a no no. You need to keep those bars in place until there's a solvable solution.
Now since you have the absolute value bars you need to realize you're diverging onto two separate answers which will require two different equations. Equation the First: (1/4x - 5) = 8 Equation the Second: -(1/4x - 5) = 8 Note the additional minus (-) sign on the second equation. The absolute value bars indicate that we'll take positive value of the solution. Essentially if the value is negative we'll flip it =\ I'm not too good at explaining why there's two equations, but hopefully you can follow along anyway. Continuing forward we just solve both equations. (1/4x - 5) = 8 1/4x - 5 = 8 1/4x = 8 + 5 1/4x = 13 x = 4*13 x = 52 -(1/4x - 5) = 8 -1/4x + 5 = 8 -1/4x = 3 x = -4*3 x = -12 So x = -12, 52. And we'll prove this to be correct now! |-12/4 - 5| = 8 |-3 - 5| = 8 |-8| = 8 8 = 8 |52/4 - 5| = 8 |13 - 5| = 8 |8| = 8 8 = 8 If necessary I'll explain better :) |
|
|
Lo-Fi Version | Time is now: 25th December 2024 - 07:46 AM |