Author Archives: Mr. M

Printing Digits Of Numbers in Java Assignment

Let’s write the following method

public void printDigits( int n){

}

 

Walk through of how the code should work:

the algorithm inolves

1) extract last digit

2) print last digit

3) remove last digit

keep doing this until there are no more digits

print-numbrs-screen-shot

Example :

Let’s look at printDigits( 345)

Walk through of how the code should work:

the algorithm inolves

1) extract last digit ‘5’

2) print last digit print ‘5’

3) remove last digit now n should be ’34’

do this for ‘4’ and then ‘3’ until there are no more digits

You need a while loop. Think about it. What is the value of n when there are no more digits?

 

Flipped Classroom PD

Summer PD, Harrison CSD

 

Resources

Free Screen Casting Software

For Your Digital Tablet

  • pd1 Smooth Draw  (creates a simple canvas for writing and inserting images)

So what should be the dimensions of your screen rectangle?

If you are uploading to youtube, you can  match the ratio of their dimensions    (1800 width by 1012 height for wide screen   )  or, if you don’t mind some black padding on the borders of your video, you can record at whatever dimensions are convenient and Youtube will take care of the rest. If you’d like to read more about this, there’s a good article at Techsmith .

Active Presenter, the basics