Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Lab 1 - Einstein's Formula (http://www.alice.org/community/showthread.php?t=12022)

jkidd 06-27-2018 12:35 AM

Lab 1 - Einstein's Formula
 
Hey guys -

I am supposed to build a world that contains a person who can calculate Einstein’s formula e=m*c2 in his or her head, and where the user enters the m value (mass in kilograms), and where c is the speed of light (299,792,458 meters per second).

I'm supposed to only ask the user for the mass (because the speed of light is a constant). I'm supposed to define descriptive variables for each quantity, and use the World function "a rasied to the b power" to compute c2.

I hate to ask for help, but I'm confused. What am I doing wrong?

I'm more of a visual learner, so if you could provide me with any examples or screenshots of what I'm supposed to be doing, it would be much appreciated.

Here is a screenshot of my method in Alice: [URL="https://image.ibb.co/fpEi78/Einstein_1.jpg"]https://image.ibb.co/fpEi78/Einstein_1.jpg[/URL]

Thanks.

sometimes618 06-27-2018 07:01 AM

[QUOTE=jkidd;58096]Hey guys -

I am supposed to build a world that contains a person who can calculate Einstein’s formula e=m*c2 in his or her head, and where the user enters the m value (mass in kilograms), and where c is the speed of light (299,792,458 meters per second).

I'm supposed to only ask the user for the mass (because the speed of light is a constant). I'm supposed to define descriptive variables for each quantity, and use the World function "a rasied to the b power" to compute c2.

I hate to ask for help, but I'm confused. What am I doing wrong?

I'm more of a visual learner, so if you could provide me with any examples or screenshots of what I'm supposed to be doing, it would be much appreciated.

Here is a screenshot of my method in Alice: [URL="https://image.ibb.co/fpEi78/Einstein_1.jpg"]https://image.ibb.co/fpEi78/Einstein_1.jpg[/URL]

Thanks.[/QUOTE]

Well, don't be too afraid to ask for help here.
First, I may recommend adding a new variable, e. The rest is demonstrated on this screenshot.
[IMG]https://i.imgur.com/K0Ew75d.png[/IMG]

jkidd 06-27-2018 02:45 PM

Thanks for your advice, sometimes618.

Here is a screen shot of my updated method in Alice: [URL="https://image.ibb.co/gtm5po/Einstein_2.jpg"]https://image.ibb.co/gtm5po/Einstein_2.jpg
[/URL]
I feel like I'm still doing something wrong or leaving something out. Correct me if I'm wrong.

Are the M,C, and E variables supposed to be "number" variables?

- jkidd


All times are GMT -5. The time now is 02:37 PM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.