You are viewing an archived version of the site which is no longer maintained.
Go to the current live site or the Adventure Gamers forums
Adventure Gamers

Home Adventure Forums Misc. Chit Chat Super Huge Homework Help!


 
 
LinkBack Thread Tools
Old 04-05-2006, 12:14 AM   #41
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

apart from where it says to write a script that calculates and prints the values? You're welcome to do whatever you like with your homework. I just don't want you using this forum to get people to do your work for you. We're happy to help, and we tried, but you weren't interested.
tabacco is offline  
Old 04-05-2006, 12:16 AM   #42
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Not so. You're just not helping right. You're trying to show me stuff that we haven't learned yet, thus I can't use it.
SakSquash is offline  
Old 04-05-2006, 12:17 AM   #43
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Dropping hints doesn't help me. I need to see how to do it so that i'll understand. How about you just get it started for me, you don't have to do the whole thing.
SakSquash is offline  
Old 04-05-2006, 12:18 AM   #44
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

I find it incredibly unlikely that he hasn't taught you what you need for any of these assignments (which is what you've said with each one). Just because he didn't explicitly show you how to do it doesn't mean he didn't teach you how. You need to take the initiative to learn.
tabacco is offline  
Old 04-05-2006, 12:19 AM   #45
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

He...didn't...teach us! That's probably why our class is down to 5 people! He taught us that addition thing, and that was it. So now i'm supposed to just know how to square and cube shit?
SakSquash is offline  
Old 04-05-2006, 12:20 AM   #46
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Quote:
Originally Posted by SakSquash
Dropping hints doesn't help me. I need to see how to do it so that i'll understand. How about you just get it started for me, you don't have to do the whole thing.
Listen... I've stayed up over an hour past when I should be in bed to try to help you with this. I wrote an entire post that was not "Dropping hints" it was trying to explain what should be your methodology in thinking about how to solve this. But you'renot interested, you just want me to write you some code you can turn in.

I'm going to bed.
tabacco is offline  
Old 04-05-2006, 12:21 AM   #47
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Quote:
Originally Posted by SakSquash
He...didn't...teach us! That's probably why our class is down to 5 people! He taught us that addition thing, and that was it. So now i'm supposed to just know how to square and cube shit?
Even if he didn't, that's not stopping you from going out on the internet or your textbook and looking for solutions. I suggested a for() loop, and you showed zero interest in how that worked, so you're on your own.

and before you say anything like "that's what I'm doing here!", I'm not talking about asking for the answer, I'm talking about looking up how to do things!
tabacco is offline  
Old 04-05-2006, 12:21 AM   #48
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Hahahah alright, cool, thanks for the help.
SakSquash is offline  
Old 04-05-2006, 06:27 AM   #49
Elegantly copy+pasted
 
After a brisk nap's Avatar
 
Join Date: Jan 2005
Posts: 1,773
Default

Quote:
Originally Posted by SakSquash
He taught us that addition thing, and that was it. So now i'm supposed to just know how to square and cube shit?
Dude, squaring and cubing shouldn't be the problem here. If you have never learned that the square of a number is the number times itself, and the cube of the number is the number times itself times itself, you have bigger problems than just a Javascript homework.

When he showed you "sum = number1 + number2;" you should be able to infer that you can do "product = number1 * number2;" and "square = number1 * number1;"

The rest of the assignment is just loops and writeln.
__________________
Please excuse me. I've got to see a man about a dog.
After a brisk nap is offline  
Old 04-05-2006, 10:55 AM   #50
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Look, I know about squaring and cubing, I just don't know how to put it all down. Like I said before, our teacher has never said anything about looping. And I got the idea that it had to be "product = number 1 * number2" and all of that, I just didn't know how to put it down so it all works together.
SakSquash is offline  
Old 04-05-2006, 11:02 AM   #51
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Quote:
Originally Posted by SakSquash
Look, I know about squaring and cubing, I just don't know how to put it all down. Like I said before, our teacher has never said anything about looping. And I got the idea that it had to be "product = number 1 * number2" and all of that, I just didn't know how to put it down so it all works together.
That's the point of learning, though.
tabacco is offline  
Old 04-05-2006, 11:47 AM   #52
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

How can I learn if I don't know where to start? That's why I wanted you to start it for me, so I can see how it works. That's how I like to learn. I see how it's done, then I do it.
SakSquash is offline  
Old 04-05-2006, 06:15 PM   #53
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

I @#$ told you how to start! Whatever. I'm done with this thread.
tabacco is offline  
Old 04-05-2006, 11:24 PM   #54
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Maybe you did tell me, but it wasn't enough for me to see a pattern. Why do you get so bitchy? It's not a big deal.
SakSquash is offline  
Old 04-06-2006, 10:43 AM   #55
Roar?
 
Stoofa's Avatar
 
Join Date: Jun 2004
Location: Canada
Posts: 665
Default

Quote:
Originally Posted by SakSquash
What you said right there? All greek.
You mean Geek.
Stoofa is offline  
Old 04-06-2006, 12:38 PM   #56
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Quote:
Originally Posted by Stoofa
You mean Geek.
Ooohh, nice one my friend.
SakSquash is offline  
Old 04-23-2006, 05:09 PM   #57
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

Ok, this should be an easy one. I kinda know the answer, but I need a little help. Here's what I have so far:

Quote:
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Solution 7.18</title>

<script type = "text/javascript">
<!--
var firstnumber,
secondnumber,
thirdnumber,
number1,
number2,
number3,
sum,
average,
product,
smallest,
largest,

firstnumber =
window.prompt( "Enter first number:", "0" );


secondnumber =
window.prompt( "Enter second number:", "0" );


thirdnumber =
window.prompt( "Enter third number:", "0" );

number1 = parseInt( firstnumber );
number2 = parseInt( secondnumber );
number3 = parseInt( thirdnumber );



sum = number1 + number2 + number3;

document.writeln( "Sum: " + sum + " " );

average = sum / 3

document.writeln( "<br>Average: " + average + " " );

product = number1 * number2 * number3

document.writeln( "<br>Product: " + product + " " );



</script>

</head>

</html>
I have to make a program that prompts the user to enter three numbers, then find the sum, product, average and the smallest and largest of the numbers submitted. I got those things to work, now I just need to find the smallest and largest numbers. Now, I know it was something to do with writing:

if ( number1 < number2

or something along those lines, but how do I do it for 3 numbers?
SakSquash is offline  
Old 04-23-2006, 07:10 PM   #58
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Alright, I will try this one more time.

The min() function returns the lowest of two numbers you pass it. Just think about how that could be used to get the least of three numbers. It's an incredibly easy answer if you actually think about it, regardless of what you know about programming or even math.
tabacco is offline  
Old 04-23-2006, 07:30 PM   #59
Banned User
 
SakSquash's Avatar
 
Join Date: Nov 2004
Location: New Paltz...for now...
Posts: 6,177
Default

What's min()?
SakSquash is offline  
Old 04-23-2006, 07:47 PM   #60
Super Moderator
 
Melanie68's Avatar
 
Join Date: Nov 2004
Location: Ohio
Posts: 8,907
Default

min( )= this.

It looks complicated to me but I've never done any of this stuff.
Melanie68 is offline  
 



Thread Tools

 


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.