Write a C1500 program that will accept as input a series of numbers and count how many times two specific numbers are en
Posted: Thu Jul 14, 2022 2:12 pm
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.