{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework1

# Homework1 - result Question6 Write a program to enter...

This preview shows pages 1–3. Sign up to view the full content.

Homework1 Programming 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Question1 : Write a program to read a set of n numbers examine each input number to determine if it is a prime number or note: (use break and continue) Question2 : Write a program to fill one dimensional array with 20 integers, find and display the count of elements having odd values, find and display the count of elements having even values. Question3 : write a program to calculate and display the result of the function below : ( 29 = = - = n i p i j j x x p n x p 3 2 | | * ) , , (
Question4 : Write program to enter a decimal number, find ,store and display the binary equivalent using 16 digits display. Question5 : Write a program to enter a binary number convert it to decimal and display the
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: result. Question6 : Write a program to enter characters in one dimensional array size = 10, the input character must be neglected if it was previously entered. Question7 : Write a program to carry out addition for long integers (say maximum of 100 digits long) using one dimensional arrays. Question8 : Write a program to enter a secret number between 0 and 100 inclusive, ask another user to guess the secret number, the program must terminate if the secret number is guessed only, otherwise tell the user weather the input number is below the secret number or above it. *Improve the code to terminate after five wrong entries....
View Full Document

{[ snackBarMessage ]}

### Page1 / 3

Homework1 - result Question6 Write a program to enter...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online