We just refreshed our COA course based on the Newton exam. With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Multiplying pi by 100 and casting to int gives you the first three digits in an integer, 314.
Then doing integer division by 100 gives the first digit, 3.
Modulo 100 gives you the last two digits in an integer, 14.
and so on...

i wonder why we need to multiply by 100 and then devide by hunded and for loop?

If you wonder, why don't you just try without doing that? I encourage you to learn by experimenting with the code.
( You will see that your result will be the array [3,0,0] )
If you perfrom 22/7 you get just the int 3. If you take 2200/7 you get 314.
But - although interesting - that's all about calculation, which I can't imagine was the purpose of that exercise...

>>>for (int i=0; i<3; i++) { result[i] = value / divisor; value = value % divisor; divisor /= 10; }in this for loop we are getting 3 when i=0 then 1 when i=1then 4 when i=2then loop exists right.I see how first element of array being pouplated by 3 using [quote]result[0] = value / divisor;[/quote]but not clear on how 1 and 4 being populated into result[1] and result[2]>>>value = value % divisor;this results 14 right which is the reminder due to this modulo operation[b]divisor /= 10;[/b]what above line means and does?is it likedivison =divison/10; which is 1?please advise

By putting breaki point and step over step into will help me to see each value individually but i want to see all the values of all pass same time like above you have given preferably without system outs all over the places. please advise

I think RAD is based on Eclipse. In Eclipse:
Set your breakpoint. Double-click to the left of the line number and you'll see a blue circle.
Run your app with the debugger.
Click the Variables tab. Here you can watch the values of variables change as you step through the statements.
Step over each statement to execute it and stop.
Repeat until you understand the code.

>> By putting breaki point and step over step into will help me to see each value individually
Right. That's what I meant by debugging.
That way you can see the moment (the place in your code) where the program doesn't react the way you had in mind.

>> but i want to see all the values of all pass same time (...) without system outs all over the places.
That's not possible (unless you store them in a list/array/map/whatever and print that out after the loop)

>> i wonder why the divisor showed 0 just after coming out of for loop
That's because we're working with int's.
2200 / 7 = 314 (and not 314.285714... as it would be when we were using double's)
1 / 10 = 0 (and not 0.1 as it would be when we were using variables of the type double)

Otherwise, if the floating-point number is not an infinity, the floating-point value is rounded to an integer value V, rounding toward zero using IEEE 754 round-toward-zero mode (§4.2.3). Then there are two cases:

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…

The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…