Question: QUESTION 4 Study the following code: double random = 4.78; QUESTION 4 Study the following code: double random = 4.78; int num = (int)random; After

QUESTION 4

Study the following code:

double random = 4.78; 

QUESTION 4

Study the following code:

double random = 4.78; 
int num = (int)random; 

After the code executes, the type of random is , its value is ; the type of num is , its value .

int num = (int)random; 

After the code executes, the type of random is , its value is ; the type of num is , its value .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!