We have declared AverageAge as an int data type so it can store only whole numbers. CS403 Handouts PDF The average age of the class can be in real numbers with decimal points (for example if the total age is 173 then the average age will be 17.3). But the division of integers will produce integer results only and the decimal portion is truncated.
CS403 Handouts PDF

If we need the actual result then we should use real numbers (float or double) in our program. Now we have declared variables for storing different values. CS403 Handouts PDF The next step asks the user to enter the age of the first student. Let’s display one line of text about the file.
ALL VU ASSIGNMENT SOLUTION GROUPS MUST JOIN AND SHARE WITH FRIENDS
IN THIS WHATSAPP GROUP I SEND A SOLUTION FILE AND LINK FOR YOU. MUST JOIN THESE WHATSAPP GROUPS CLICK THE BELOW LINK
ALSO, SEE
ACC311 FINAL TERM PAST PAPER MEGA FILES
MUST JOIN VU STUDY GROUPS
GROUP LINK
GROUP LINK
GROUP LINK
GROUP LINK
GROUP LINK
Therefore, the phrase “Enter the age of the first student is displayed on the screen. CS403 Handouts PDF Whenever you ask a user for information, you need to be very clear. That is, write sentences that are trivial and that the user understands. Completely and accurately.
Now anyone can understand the above sentence Ages are listed for the first student. I’m expecting only integers That is, the age is 10, 12, and so on. This program should not assume. Or 12 years and 3 months.

Click to Download Below CS403 PDF Handout