Picbasic program

Assignment Help Programming Languages
Reference no: EM13694922

Question: 1. Express the following, base 2 number, in decimal (base 10) format.

01011011 ( base 2 ) =

Question: 2. Express the following, decimal number (base 10), in binary (base 2)

197 ( base 10 ) =

Question: 3. Comment the function associated with every line of the following PICBASIC program:
'
' START OF MAIN LOOP
'
led_rb0 = 0
led_rb1 = 0
led_rb2 = 0
led_rb3 = 0
x2=1
main_loop:
IF x2 > 20 THEN
x2=1
ENDif
IF x2> 10 and x2 <15 THEN
led_rb1 = 1
ELSE
led_rb1 = 0
ENDIF
x2=x2+1
pause 100
goto main_loop

I cannot seem to get this to work for some reason could somebody provide answer?

Reference no: EM13694922

Questions Cloud

How much work done on a system to decrease its volume : Problem- How much work must be done on a system to decrease its volume from 12.0 L to 4.0 L by exerting a constant pressure of 5.0 atm
Write a select statement that returns four columns : Write a SELECT statement that returns four columns from the Products table: ProductCode, ProductName, ListPrice, and DiscountPercent. Then, run this statement to make sure it works correctly.
Draw the structure of the major organic product : Problem- Draw the structure of the major organic product you would expect from the reaction of 1-bromopropane with NaI.
Generate gaussian random numbers : Generate Gaussian Random Numbers and adapt the sample program found there (obey copyright).
Picbasic program : Comment the function associated with every line of the following PICBASIC program
Generate a random number from normal distribution : lname must be generated at random using specified uniform distributions, i.e., [X, Y] means that some random value between X and Yis chosen for each record by your implementation.
What is the final volume of the gas : Problem- A sample of gas occupies a volume of 74.8 mL. As it expands, it does 116.3 J of work on its surroundings at a constant pressure of 783 torr. What is the final volume of the gas?
The half-lives of different radioisotopes : Problem- The half-lives of different radioisotopes are given in the table below. How long would it take (in minutes) for the amount of argon-44 to decrease from 88.0 mg to 11.0 mg
Water at an initial temperature what is final temperature : If all the energy obtained from burning 1.26 pounds of ethane (fuel value is 11.36 kcal/g) is used to heat 123.0 kg of water at an initial temperature of 22.0 °C, what is the final temperature

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that will operate the alarm simulation

Write a program that will operate the Alarm Simulation, using the following inputs and outputs and whatever Timers and Flags are required.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Design the swing applet and html test file

You can download sound clips and graphics images from Internet to use in the program. Design the Swing applet named JPartyPlanner and HTML test file to run Swing applet.

  Weekly demand for motorola cell phones at a retail store is

weekly demand for motorola cell phones at a retail store is normally distributed with a mean of 300 and a standard

  Write program that inputs single integer in digital river

A digital river is sequence of number where number following is n+ sum of its digits for example 12345=12345+15=12360. Write a program that inputs single integer n (1

  Write statement to allot new value to element of array

Write down single statement which allots new value to element of ArrrayList indexed by j. This new value must be equal to twice value stored in next element of ArrayList.

  Provide unoptimized-optimized prefix using recursive rule

Where the recursive rule uses concatenation of strings, so F2 is "ab", F3 is "aba". Note that the length of Fn is the nth Fibonacci number. Provide unoptimized and optimized ‘prefix' (fail) function for F7.

  Design and implement a java program

Design and implement a Java program which defines an array of size SIZE, randomly populated with Integer or int values in the range 1 .. MAXRNG and sorts the array in increasing order of its values using QuickSortOpt1 and then by QuickSortOpt2. Consi..

  Explain how is recursion and iteration used in programming

question 1 how is recursion and iteration used in programming? provide examples of the various types of recursion and

  Write iterative program which finds largest number

Write the iterative program which finds largest number of McNuggets which cannot be bought in exact quantity. Your program must print the answer in the following format.

  Program read data from input file and select specified items

Program should be able to read data from input file and select the specified items. Write data for school-age males to file male.out and data for school-age females to female.out.

  Prompt for user login to begin using the system

Suggest an application system which is able to perform some arithmetic computations, like commission system, encryption system, timer system, etc, from anyone of the following industry.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd