You will create two int variables into which you will store •Your Foothill College student ID. (This is normally an 8-digit number; don’t confuse it with your social security # or a password, which it is not.) •The number of letters in your family (last) name. In order to receive any credit for this assignment, these two values must match what I have for you on my class roster. Your program will compute some values based on these two numbers, so each student will have a unique output. The Program Spec The following five expressions assume that you have stored your student ID into the variable studID, and the number of letters in your last (family) name into the variable numLet. You can manually enter both of these using assignment statements in your program source. No user input allowed. Compute the following five values: #1 – studID%2 #2 – studID%numLet #3 – studID/numLet #4 – 1+2+3+4+5+numLet #5 – 100,000/99+[studID-54,321/(numLet+30)^2]

In this assignment, you are required to create two integer variables, one to store your Foothill College student ID and the other to store the number of letters in your family (last) name. These values should match what the instructor has on their class roster in order to receive credit for the assignment.

Once you have stored your student ID and the number of letters in your last name in the variables, you need to compute five values based on these numbers. The expressions for these computations are given as follows:

1. studID%2
2. studID%numLet
3. studID/numLet
4. 1+2+3+4+5+numLet
5. 100,000/99+[studID-54,321/(numLet+30)^2]

Let’s analyze each of these expressions:

1. studID%2:
This expression calculates the remainder when the student ID is divided by 2. The % operator is the modulus operator, which gives the remainder of the division. For example, if the student ID is 12345678, then the result would be 0 because 12345678 divided by 2 has no remainder.

2. studID%numLet:
This expression calculates the remainder when the student ID is divided by the number of letters in your last name. Similar to the previous expression, it uses the modulus operator. For example, if the student ID is 12345678 and the last name has 6 letters, then the result would be 2 because 12345678 divided by 6 has a remainder of 2.

3. studID/numLet:
This expression calculates the quotient when the student ID is divided by the number of letters in your last name. It uses the division operator “/”. For example, if the student ID is 12345678 and the last name has 6 letters, then the result would be 2057613 because 12345678 divided by 6 is 2057613.

4. 1+2+3+4+5+numLet:
This expression calculates the sum of 1, 2, 3, 4, 5, and the number of letters in your last name. It uses the addition operator “+” to add these values together. For example, if the number of letters in your last name is 6, then the result would be 21 because 1+2+3+4+5+6 is equal to 21.

5. 100,000/99+[studID-54,321/(numLet+30)^2]:
This expression combines multiple operations to calculate the final result. It first subtracts 54,321 from the student ID. Then it squares the sum of the number of letters in your last name and 30. Finally, it divides this result by 99 and adds it to 100,000. For example, if the student ID is 12345678 and the last name has 6 letters, then the result would be approximately 508518.12 after performing these calculations.

Please note that these calculations are based on the given expressions, and the actual values will depend on the specific values of your student ID and the number of letters in your last name.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer