Assignment_18

Assignment_18 - If you are female between the ages of 18...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 18 Combining Comparisons There is a secret government organization called PIB which only accepts recruits who fit their criteria (shown below). If you fit any of the combinations of criteria, then you can apply to work for PIB. Write a program which asks the user appropriate questions (ask all the questions up front) and then determines if the candidate is acceptable. Use the screen shots as a guide. Here are the rules: If you are male between the ages of 18 and 30 (inclusive) you may apply.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If you are female between the ages of 18 and 32 (inclusive) you may apply. If you are male between the ages of 18 and 35 (inclusive) and either were in the military or you can do at least 50 pushups in a row you may apply. If you are female between the ages of 18 and 40 (inclusive) and either were in the military or you can do at least 30 pushups in a row you may apply. No one else is eligible. Screen shot samples:...
View Full Document

Page1 / 2

Assignment_18 - If you are female between the ages of 18...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online