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

  Program to display information about balance in account

Design an ordinary text file named solution06.txt. In that file, enter text required to make a web page that will display information about balance contained in family's account.

  Design a grade average program by using raptor which will

design a grade average program using raptor that will produce the numerical grade average of test scores input by a

  Program-compute monthly interest-print next balance for sav

Set annual interest rate to 4% then compute monthly interest and print next balance for both savers. Then set annual interest rate 5%. Compute next month interest and print next balance for both savers.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Track of position of a point in three-dimensional space

Specify, implement and design a class that can be used to keep track of position of a point in three-dimensional space. For example consider the point drawn at the topof the next coloumn. The point shown there has three coordinates

  Create form to accept an arrival and departure date

Create a form that accepts an arrival and departure date for a reservation from the user and then calculates the number of nights and the total price for the reservation.

  Write a program to enter series of numbers

Write a program that ask the user to enter a series of numbers ending with -1. After the -1 is input, program should print how many numbers are even and how many numbers are odd.

  Create application to use scrollable control track

Create the Application which permits you to enter amount of a purchase and then display the amount of sales tax on the purchase. Use a scrollable control such as a track bar to adjust the tax rate.

  Write procedure list-records whihc returns list of records

Write a procedure called list-records which returns a list of all records by artist from a list of records containing several artists.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  What is the throughput of the system

what is the throughput of the system

  Test a program for summing

You are to implement and test a program for summing 1/x as x runs over all approximately eight million (23 fraction bits) single precision floating point numbers in the interval [1, 2). You are to do this on a server, PC (or Mac) of your choice..

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