Question: Write a program that prompts the user to enter three positive integers N, lover, and upper which represent how many random numbers are to generate,

Write a program that prompts the user to enter three positive integers N, lover, and upper which represent how many random numbers are to generate, the lower, and upper bounds on the generated random numbers respectively. The program generates the random numbers, calls the function is Prime() which checks whether an integer is prime or not, and prints the numbers. Write a function called check PIN(int) that checks whether a PIN number is valid or not A PIN number is a four-digits number and valid if the sum of the unit, ten, and hundred digits remainder 10 is equal to the thousand digit of the PIN number. For example 2591 is not a valid PIN number because (1+9+5) % 10 is 5 which is not the thousand digit, while the PIN number 6592 is a valid PIN number because (2+9+5) % 10 is 6 the thousand digit. Write the function main() that reads a four-digits number, calls the function check PIN(), and print a message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
