I\'m having trouble with these questions on my basic stamp. I think the teacher
ID: 2079867 • Letter: I
Question
I'm having trouble with these questions on my basic stamp. I think the teacher wants the numbers displayed with Debug. It'll be a lot of help so I can analyze it. I'm using Basic Stamp Editor V2.5.3
Stamp mode: {$STAMP BS2}
PBasic Langage 2.5 {$PBASIC 2.5}
1. Write a program that counts from 3 to 13 and then from 13 to 3 a total of 3 times.
2. Using the PING sensors, write a program that will display the distance of an object from the sensor. This needs to be accurate to 1in. (Ex: Distance is 5 inches)
Please try to be as basic as possible. I'm just starting to learn.
Explanation / Answer
1.
int main ( )
{
for(int i=0;i<3;i++)
for(int j=3;j<14;j++)
cout<<j;
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.