Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.

# Thread: Need a little Script HELP

1. ## Need a little Script HELP

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!!!!!

• 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.

• ## Hey Wiggum

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.

• 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.
Code:
```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.

• ## The problem is

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.

• 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 which talks about homework assignments and how we handle them.

• Also people who are arrogant and expect us to do everything for them really annoy me :|

•

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•