Marie Instruction Set and Programming Example with Marie Simulator

  Рет қаралды 40,501

THE IT CHANNEL

7 жыл бұрын

In this video I provide explanation on the instruction set of Marie Simulator and show you code for a simple program. The program adds two values and then subtract a third one then displays result to the console. I hope that helps and let me know if you have any questions. Thanks for watching and remember to subscribe for more tutorials on Programming with MARIE SIMULATOR!

Пікірлер: 17
@johntran5079
@johntran5079 5 жыл бұрын
thanks for your great tutorial
@Pharmacy.Rxplorer
@Pharmacy.Rxplorer 5 жыл бұрын
Great video. Thanks.
@TheRockacer22
@TheRockacer22 4 жыл бұрын
Amazing video!
@ITCHANNEL101
@ITCHANNEL101 Жыл бұрын
Thanks!
@MrAesop0
@MrAesop0 5 жыл бұрын
i need some help with the input/output commands.. i am new to marie and i need to write a program that takes input and prints hex on output..if you can help me i would be really thankful
@ITCHANNEL101
@ITCHANNEL101 5 жыл бұрын
Hi Howaitohanta. To get input from user, you just need to use "Input". In this case, the input value will be stored in AC. If you want to store it to a variable, say "X", you can do "Store X" (remember you need to declare "X" at the end of the program before using it). Here is the code in your program: input store X For output, you can just use "Output" as follows in your program: output To specify "Hex" of the output, you should use the option on the GUI (at the bottom of the display area) for specify the type of the output. Let me know if you have any issues. Thanks for your questions.
@MrAesop0
@MrAesop0 5 жыл бұрын
@@ITCHANNEL101 the program I must write has to take numbers from 0-100 if the number is 49,
@ITCHANNEL101
@ITCHANNEL101 5 жыл бұрын
@Howaitohanta: That is correct. You need to have a for loop of 10 (as you need to have 10 results). For each iteration, you use "input" to take a number in and compare it with the threshold to display the correct character. Hope that helps!
@dtenbwdecibelten8623
@dtenbwdecibelten8623 5 жыл бұрын
Please help sort numbers in ascending order using a marie program
@ITCHANNEL101
@ITCHANNEL101 5 жыл бұрын
Sorry for late response, Infinity Man 2. Do you have any specific scenario in mind? Let me know so I can make a video for you. Thanks.
@rajatkhadka6623
@rajatkhadka6623 4 жыл бұрын
TRAFFIC LIGHT A MARIE program is needed that controls a Traffic Light, facing in only one direction (simplified problem). The program should start with the Light as RED and wait for a count of 25. Then it should set the Light to GREEN, and wait for a count of 30. Then it should set the Light to YELLOW, and wait for a count of 5. Then it should set the Light to RED, and wait then continue as above. The values 25, 30, and 5 listed here are to be used as the initial values for program parameters (user decisions that will be adjusted with experience). They need to be stored in your program in an easily identifiable way so they can be changed to adjust the Traffic Light's timing. (1) PLAN and DESIGN How will you organize (design) this MARIE program? What data fields do you need? How will you display the Traffic Light in MARIE Sim? (2) IMPLEMENT and TEST As a team, write this program and make sure that it is working correctly. (3) CALIBRATE Adjust your working program so the traffic light changes based on these specific (real, human) wallclock time delays: RED should be on for 35 seconds; GREEN should be on for 40 seconds; YELLOW should be on for 10 seconds. This website has a clock face with a sweep second hand that can be useful in checking your traffic light's times: www.timeanddate.com/worldclock/usa/boston (4) SUBMIT YOUR PROGRAM
@erangadesilva8885
@erangadesilva8885 4 жыл бұрын
how can i write If the user input is 17, the output would be 1
@ITCHANNEL101
@ITCHANNEL101 4 жыл бұрын
thanks for your question. please see my above reply.
@fitnesstools123
@fitnesstools123 4 жыл бұрын
programe for check prime or not prime
@ITCHANNEL101
@ITCHANNEL101 4 жыл бұрын
Hello Karan. To program this, you first need to write a function to compute division first: given two numbers, x and y, compute x/y = quotation and reminder. Once you can do that, you then run a for loop with i from 2 to x/2 and check if any reminder of x/i == 0. Then you can output it's a prime or not. I will put up a video for this shortly when I have time next week. Thanks.
@amithanushke
@amithanushke 4 жыл бұрын
Hi do you know how to answer this question ? Write a MARIE program that accepts an integer from the user, and if it is a prime number the program will output 1, otherwise, the program will output 0. Examples: If the user input is 17, the output would be 1 If the user input is -2, the output would be 0 Thanks
@ITCHANNEL101
@ITCHANNEL101 4 жыл бұрын
please see my above reply. thanks.
Пробую самое сладкое вещество во Вселенной
00:41
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 33 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 23 МЛН
Пробую самое сладкое вещество во Вселенной
00:41