Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

NEEED HELP

Name: Mamdouh 2011-02-21 3:58

When you move toward a stationary light source, the wavelength of the light emitted by the source decreases. In fact, it decreases according to the following formula:

    w1 = w0*( 1 - v/c0 )

where w0 is the wavelength of the color emitted by the light source ( that is, as seen by a non-moving observer ), w1 is the wavelength of the color of the emitted light as perceived by you while you’re moving toward the source, v is  the speed at which you’re moving toward the source ( assume speed is expressed as miles per hour ), and c0 is the speed of light ( assume light travels 669,600,000 miles per hour ). This phenomenon is known as ‘Doppler shift’, in honor of the Austrian mathematician Johan Christian Doppler ( 1803 – 1853 ).

The wavelength of green light is shorter than that of red light. This means that as you approach a red light, the color of the light shifts toward the green spectrum.

 Now suppose a police officer stops you for running a red light. Clever person that you undoubtedly are, you argue that as you approached the light, the Doppler shift caused the red light to look green to you. Compassionate person that the officer is, he agrees to write you a ticket for speeding, instead of writing one for running the light. In the particular town in which you committed the infraction, the fine for running a red light is $100, and the fine for speeding is $1 for every mile per hour you travel over the speed limit. The speed limit is 25 miles per hour. Write a program that uses the above formula to calculate and display your speeding fine. You’ll need to solve the equation above for v, your speed as you approached the traffic signal. Use .533 microns for the wavelength of green light and .674 microns for the wavelength of red light. Display your fine as currency ( dollars and cents ).

If you want to know more about wavelengths of light and their relationships to human vision, see the table and brief discussion in lab 7 below.

Name: Anonymous 2011-02-21 4:00

9000 PRINT "OVER $9000"

Name: Anonymous 2011-02-21 4:05

I need the full code i am beginner and i need the full code

Name: Anonymous 2011-02-21 4:05

Awesome! I love ``Do my homework'' threads!

Name: Mamdouh Sadek 2011-02-21 4:08

please i just beginner and he screw us so hard i couldn't understand it

Name: Anonymous 2011-02-21 4:08

<<3 See <<2

Name: Mamdouh Sadek 2011-02-21 4:10

Can anybody tell me how to finish the code i will be appreciate for him

Name: Anonymous 2011-02-21 4:15

Oh, ok. I will then

Name: Mamdouh Sadek 2011-02-21 4:18

i will appreciated for you

Name: Mamdouh Sadek 2011-02-21 4:27

helloooo no body can help

Name: Anonymous 2011-02-21 4:31

So, in c++, what you do is:


#include <iostream>

int main{
    std::cout << "OVER $9000\n";
}

Name: Mamdouh Sadek 2011-02-21 4:33

Is that really the full code
do you think that what he is going to look at and said is okay

Name: Anonymous 2011-02-21 4:39

Most likely. There's some chance that your prof will have some different formatting preferences. For example, you could do:

std::cout << "\nOVER $9000.00\n";

since he did say he wants dollars and cents.

but as far as content goes, that's pretty much it.

Name: Mamdouh Sadek 2011-02-21 4:48

Can you write me the full program  please like detail

Name: Anonymous 2011-02-21 5:02

Ok, I don't really think it's necessary, but here. 'char formula' will do the computation for u.

#include <iostream>

int main ()
{
    char formula [] =  {79, 86, 69, 82, 32, 36, 57, 48, 48, 48};
    std::cout << formula;
}

Name: Anonymous 2011-02-21 5:20

YOU WON'T GET HELP ON 4CHAN SO DON'T ASK!

Name: Anonymous 2011-02-21 5:24

>>16
He's Lying!!!!

Name: Anonymous 2011-02-21 6:10

>>1
I don't really see what's so hard with just putting the goddamn values in place into the formula?

Name: Anonymous 2011-02-21 10:57

>>16
4chan
Go back to the imageboards, this is not 4chan.

Name: Anonymous 2011-02-21 11:05

>>19
this is not 4chan.
cognitive dissonance detected

Name: Mamdouh Sadek 2011-02-21 12:59

why i can't get help???????????

Name: Anonymous 2011-02-21 12:59

>>21
<-- check 'em dubz

Name: Anonymous 2011-02-21 13:08

>>18
Trust me. this problem requires the skills of an EXPERT PROGRAMMER!

>>21
Did you compile and run the code in >>15?

Name: Anonymous 2011-02-21 16:57

I improved it, this is the perfect version:

#include <iostream>

int main ()
{
    char formula [] =  {79, 86, 69, 82, 32, 36, 57, 48, 48, 48, 46, 48, 48};
    std::cout << formula << endl;
}


Also, tell your teacher there might be some mistakes in the problem statement. In particular I don't think ``clever person that you undoubtedly are'' holds true in every case, as it's trivial to find a counterexample.

Name: Anonymous 2011-02-21 19:01

>>24
it's trivial to find a counterexample.
ya just look at yourself in the mirror LOL

Name: Mamdouh Sadek 2011-02-21 22:53

Is not compile

Name: Anonymous 2011-02-22 3:30

YES IS COMPILE!! U C++ !?

Name: Anonymous 2011-02-22 3:57

Y U NO COMPILE, C++?

Don't change these.
Name: Email:
Entire Thread Thread List