Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote