Question: 1 1 0 , write a program that prints a secret message hidden in a list of integers entered by a spy ( ( user

110, write a program that prints a secret message hidden in a list of integers entered by a spy (user), provided the list of integers is secure. The user will input a list of integers that could be as long as 50,000 integers. Each integer is between 65 and 90 inclusive and represents a capital letter in ASCII. However, for improved security, the secret message to be printed consists of every second integer starting with the first integer. The input is secure if the sum of all input integers is a prime number. If the message is secure, print the hidden message and quit the program; otherwise, quit the program. Prompt the user to enter the total number of integers in the message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem you can follow these steps 1 Ask the user for the number of integers in the me... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!