...

View Full Version : Need a little Script HELP



crashoverride
05-30-2005, 11:29 PM
have to write script for class project.

here's what it is that i have to do:


1.)Frist, prompt the user for four values that represent the numbers of pennies, nickels, dimes and quaters in the jar. For each one, use a prompt statement (with default value zero) to get the input value as a character string, and use the parseFlorat function (actually, the similar parseInt function is just as good here) to convert it to an integer value and store it in a variable.



2.)Next, create four variables that store the values 0.01, 0.05, 1.10, and 0.25 (the monetary value of a penny, a nickel, a dime, and a quater).



3.)Using the four input values and the four variables storing the monetary value of each type of coin, compute and store in a variable the total value of the collection of coins.



4.)Using document.write statements, construct a table with two rows and five columns. The five cells in the top row will show the names of the four types of coins and the text "Total value". The five cells in the bottom row will show the number of each of the four types of coin and the total value of the coins.



5.)Go back and set the background color of the document, the background color of the table, and the color of the text in the table to any values you choose (other than the default values!) that are still easily readable. Use an embedded style sheet.



The professor obviously isn't clear as to what exactly he wants. He wants this all done with out a WYSIWYG editor for a beginner class. I just need a C for this class and I will be happy. So someone anyone PLEASE HELP!!!!! :eek:

ChiefWigs1982
05-31-2005, 12:36 AM
Your kidding, right? You just want someone to do your homework for you?

Behave.


Do it yourself, then come back when you have some specific questions
that you need help with.

crashoverride
05-31-2005, 12:49 AM
Out of 5 assignments I completed 4 but this one, well as I stated I haven't a clue as to do this. I am looking for assistance in this. Do my homework for me not really just giving a hand up instead of a handout.

If you can help then let's talk. If you're not interested save your time and energy and please don't respond. :thumbsup:

bfsog
05-31-2005, 01:33 AM
I must agree with ChiefWigs1982. Some of the steps are simple, if you have indeed finished 4/5 projects, you should be sble to do some of these.

However


1.)Frist, prompt the user for four values that represent the numbers of pennies, nickels, dimes and quaters in the jar. For each one, use a prompt statement (with default value zero) to get the input value as a character string, and use the parseFlorat function (actually, the similar parseInt function is just as good here) to convert it to an integer value and store it in a variable.




var iPennies = prompt("Number of peenies: ","0");

var parsedPennies = parseInt(iPennies);


With that code you should be able to reproduce it for the four needed variables.

After trying, come back if help needed.

crashoverride
05-31-2005, 02:02 AM
Okay the problem is that things jumped from standard HTML create a table and then CSS to javascript. This a beginner class and I cannot use a WYSIWYG editor to see what the heck I am creating.

I can't jump from something as simple as HTML to Javascript in 2 weeks time without being able to ask the professor questions. We sit in a computer free classroom. So imagine yourself taking C++ by way of desk, chair, book and no help from the professor and no computer in class to work on.

If your advanced, then maybe I can say okay you should know it by now but beginner come on - give me a break.

I have exhausted all other leads at this point and I am just reaching out for a little help. If I knew what I was doing or had some clue I wouldn't be here.

Again I just need some guidance (help). I look at it as a hand up instead of a hand out or paying it forward.

_Aerospace_Eng_
05-31-2005, 02:11 AM
As they said at least TRY to code something then we can help you but without you trying it shows that you really don't want to put forth the effort at all. I also advise that you read this thread (http://www.codingforums.com/showthread.php?t=53446) which talks about homework assignments and how we handle them.

JamieR
05-31-2005, 02:12 AM
Also people who are arrogant and expect us to do everything for them really annoy me :|



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum