Write a C1500 program that will check if your U of M student number is divisible by your age. Load your student number a
Posted: Thu Jul 14, 2022 2:12 pm
Write a C1500 program that will check if your U of M student number is divisible by your age. Load your student number and your age into memory, then perform the math necessary to determine if your student number is divisible by your age. Finally, output your age if your student number is divisible, or the remainder if it is not. Make sure to include your U of M student number. Program 2: how many? [7 marks] Write a C1500 program that will accept as input a series of numbers and count how many times two specific numbers are entered. The two specific numbers are obtained from the first two digits and the last two digits of your U of M student number. (As in Assignment 1 , if the last 2 digits are 00, use 100 instead.) Store these numbers into memory. This program will keep accepting numbers until a value of 0 is input. This requires your program to perform looping, since you don't know beforehand how many non-zero values will be entered. Each time a non-zero number is entered, compare it to your specific numbers, and if it is equal, count them accordingly. Once the zero value is entered, output the count for both numbers. Remember to include your U of M student number in the comment area of your program.